1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-18 19:07:19 +03:00

sources.nix: with -> let

This commit is contained in:
Nicolas Mattia 2019-11-24 19:40:00 +01:00
parent 430ee95b6d
commit bd1aeb0a9c

View File

@ -1,8 +1,6 @@
# This file has been generated by Niv.
# A record, from name to path, of the third-party packages
with rec
{
let
pkgs =
if hasNixpkgsPath
then
@ -81,7 +79,7 @@ with rec
"file" = fetchurl;
"builtin-url" = builtins_fetchurl;
};
};
in
# NOTE: spec must _not_ have an "outPath" attribute
mapAttrs (
_: spec: