From d75b723281aea944fbafdb28f5b0841a03827b4a Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Mon, 6 Dec 2021 17:23:47 +1100 Subject: parameterise RG line as nix attribute set Allows more seamless transitioning between alingment algorithms --- default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index db5d14f..6f6fb3d 100644 --- a/default.nix +++ b/default.nix @@ -109,7 +109,7 @@ let ''; in '' - mkdir $out + mkdir $out '' + (concatStringsSep "\n" (mapAttrsToList link x)); passthru.linkInputs = x; }; @@ -136,6 +136,7 @@ let lib = nixpkgs.lib // { inherit types; shard = callBionix ./lib/shard.nix { }; + concatMapAttrsStringsSep = s: f: a: with nixpkgs.lib; concatStringsSep s (mapAttrsToList f a); }; stage = x@{ name, stripStorePaths ? true, multicore ? false, ... }: (if stripStorePaths then strip else x: x) -- cgit v1.2.3