3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #208045 from figsoda/fix-env

nixos/environment: fix variables type
This commit is contained in:
figsoda 2022-12-27 21:47:02 -05:00 committed by GitHub
commit 9a2e72335c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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