1
1
mirror of https://github.com/nmattia/niv.git synced 2024-11-07 22:36:53 +03:00

Replace default.nix with-rec with let

This commit is contained in:
Nicolas Mattia 2020-07-22 20:14:10 +02:00
parent b0e3ca55a9
commit 8e0e8017c5

View File

@ -2,8 +2,7 @@
, pkgs ? import ./nix { inherit sources; } , pkgs ? import ./nix { inherit sources; }
}: }:
with rec let
{
files = pkgs.callPackage ./nix/files.nix {}; files = pkgs.callPackage ./nix/files.nix {};
sourceByRegex = name: src: regexes: sourceByRegex = name: src: regexes:
@ -191,7 +190,7 @@ with rec
echo " ..." echo " ..."
''; '';
}; };
}; in
rec rec
{ {
inherit niv niv-sdist niv-source niv-devshell niv-cabal-upload; inherit niv niv-sdist niv-source niv-devshell niv-cabal-upload;