nixos/shells-environment: allow lists of paths

This commit is contained in:
Sandro Jäckel 2024-05-03 13:44:03 +02:00
parent ed38b9699a
commit d917bac7c5
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -42,7 +42,7 @@ in
strings. The latter is concatenated, interspersed with colon
characters.
'';
type = with types; attrsOf (oneOf [ (listOf (oneOf [ int str ])) int str path ]);
type = with types; attrsOf (oneOf [ (listOf (oneOf [ int str path ])) int str path ]);
apply = let
toStr = v: if isPath v then "${v}" else toString v;
in mapAttrs (n: v: if isList v then concatMapStringsSep ":" toStr v else toStr v);