niv 0.2.0 → 0.2.1
raw patch · 4 files changed
+9/−5 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +1/−1
- niv.cabal +2/−2
- nix/sources.nix +5/−1
- src/Niv/Cli.hs +1/−1
README.md view
@@ -199,7 +199,7 @@ ``` niv - dependency manager for Nix projects -version: 0.2.0+version: 0.2.1 Usage: niv COMMAND
niv.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 79bc5a116ffbf43a58aab2bed0b2381ff3620a4fe61ed5245b237e9d4253b0d1+-- hash: 7cabb5fdfc03b35748a6e8348284d303786488a08d6819852d4df7d428791e6e name: niv-version: 0.2.0+version: 0.2.1 synopsis: Easy dependency management for Nix projects description: Easy dependency management for Nix projects. category: Development
nix/sources.nix view
@@ -47,6 +47,10 @@ # annoyingly this means we have to specify them fetchzip = { url, sha256 }@attrs: pkgs.fetchzip attrs; + # A wrapper around pkgs.fetchurl that has inspectable arguments,+ # annoyingly this means we have to specify them+ fetchurl = { url, sha256 }@attrs: pkgs.fetchurl attrs;+ hasNixpkgsPath = (builtins.tryEval <nixpkgs>).success; hasThisAsNixpkgsPath = (builtins.tryEval <nixpkgs>).success && <nixpkgs> == ./.;@@ -71,7 +75,7 @@ in builtins.getAttr fetcherName { "tarball" = fetchzip; "builtin-tarball" = builtins_fetchTarball;- "file" = pkgs.fetchurl;+ "file" = fetchurl; "builtin-url" = builtins_fetchurl; }; };
src/Niv/Cli.hs view
@@ -306,7 +306,7 @@ sources <- unSources <$> getSources forWithKeyM_ sources $ \key (PackageSpec spec) -> do- tsay $ "Updating " <> tbold (unPackageName key)+ tsay $ "Showing " <> tbold (unPackageName key) forM_ (HMS.toList spec) $ \(attrName, attrValValue) -> do let attrValue = case attrValValue of Aeson.String str -> str