aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2022-02-21 11:27:26 +1100
committerJustin Bedo <cu@cua0.org>2022-02-21 11:27:26 +1100
commitc2514beaeaaeb87d48f0780e089758eb61d96629 (patch)
tree69c2071057b1ee8c07887e5aa05972422170d119
parent6664d56a18be8f0e9f027d6e5723b4b4e35f2694 (diff)
linkOutputs: ignore null values
-rw-r--r--default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 1d2bad3..73cccdd 100644
--- a/default.nix
+++ b/default.nix
@@ -101,7 +101,7 @@ let
linkOutputs x
else
abort "linkOutputs: unsupported type";
- link = dst: src: ''
+ link = dst: src: lib.optionalString (src != null) ''
ln -s ${recurse src} $(perl -e 'print $ENV{"${dst}"}') ; ln -s ${recurse src} $out/${dst}
'';
in