Skip to content

Commit

Permalink
Add the current system if --impure is used (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ursi authored Feb 28, 2024
1 parent 1ef2e67 commit d465f48
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@ let
in
builtins.foldl' op attrs (builtins.attrNames ret);
in
builtins.foldl' op { } systems
builtins.foldl' op { }
(systems
++ # add the current system if --impure is used
(if builtins?currentSystem then
if builtins.elem builtins.currentSystem systems
then []
else [ builtins.currentSystem ]
else
[]))
;

# eachSystemMap using defaultSystems
Expand Down

0 comments on commit d465f48

Please sign in to comment.