nix fmt
This commit is contained in:
parent
ea6ac8389b
commit
9c0f4a922a
12
closure.nix
12
closure.nix
|
@ -7,11 +7,7 @@
|
|||
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (builtins)
|
||||
genericClosure
|
||||
hasAttr
|
||||
map
|
||||
;
|
||||
inherit (builtins) genericClosure hasAttr map;
|
||||
inherit (pkgs.lib)
|
||||
concatLists
|
||||
concatMap
|
||||
|
@ -22,12 +18,14 @@ let
|
|||
;
|
||||
|
||||
# Map a drv or list of drvs to a list of output drvs
|
||||
drvOutputs = drv:
|
||||
drvOutputs =
|
||||
drv:
|
||||
if isList drv then
|
||||
concatMap drvOutputs drv
|
||||
else if hasAttr "outputs" drv then
|
||||
map (out: drv.${out}) drv.outputs
|
||||
else [ drv ];
|
||||
else
|
||||
[ drv ];
|
||||
|
||||
# Map a drv or list of drvs to the outputs of referenced derivations
|
||||
drvDeps =
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
lib = import ./lib.nix { inherit pkgs; };
|
||||
inherit (lib)
|
||||
allMaintainers
|
||||
expandInput
|
||||
noMaintainers
|
||||
;
|
||||
inherit (lib) allMaintainers expandInput noMaintainers;
|
||||
in
|
||||
{
|
||||
bundlers."x86_64-linux" = rec {
|
||||
|
|
Loading…
Reference in New Issue