niv-0.2.21: Easy dependency management for Nix projects
Safe HaskellNone
LanguageHaskell2010

Niv.Sources

Synopsis

Documentation

data FindSourcesJson Source #

Where to find the sources.json

Constructors

Auto

use the default (nix/sources.json)

AtPath FilePath

use the specified file path

Instances

Instances details
MonadReader FindSourcesJson NIO Source # 
Instance details

Defined in Niv.Cli

newtype Sources Source #

Instances

Instances details
ToJSON Sources Source # 
Instance details

Defined in Niv.Sources

FromJSON Sources Source # 
Instance details

Defined in Niv.Sources

attrsToSpec :: Attrs -> PackageSpec Source #

Simply discards the Freedom

pathNixSourcesJson :: FindSourcesJson -> FilePath Source #

nix/sources.json or pointed at by FindSourcesJson

sourcesVersionToText :: SourcesNixVersion -> Text Source #

A user friendly version

md5ToSourcesVersion :: Text -> Maybe SourcesNixVersion Source #

Find a version based on the md5 of the nix/sources.nix

sourcesVersionToMD5 :: SourcesNixVersion -> Text Source #

The MD5 sum of a particular version

sourcesNixMD5 :: IO Text Source #

The MD5 sum of .nixsources.nix

initNixSourcesNixContent :: ByteString Source #

Glue code between nix and sources.json