summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-03-07 22:26:07 +0100
committertv <tv@krebsco.de>2017-03-07 22:26:07 +0100
commit218c58ef333e6968caa846612bdee162517b3b53 (patch)
treed75f92a51d97ddd95313970a4ed75ac861c7b497 /krebs
parent0edb13f3fc16e6456e5deb4e006595491a6b197e (diff)
writers.link: mkdir when path is absolute
Diffstat (limited to 'krebs')
-rw-r--r--krebs/5pkgs/writers.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/5pkgs/writers.nix b/krebs/5pkgs/writers.nix
index e1dbed5c7..d14090323 100644
--- a/krebs/5pkgs/writers.nix
+++ b/krebs/5pkgs/writers.nix
@@ -122,7 +122,7 @@ with import <stockholm/lib>;
assert types.package.check link;
{
install = /* sh */ ''
- ${optionalString (dirOf path != "/") /* sh */ ''
+ ${optionalString (path != "") /* sh */ ''
${pkgs.coreutils}/bin/mkdir -p $out${dirOf path}
''}
${pkgs.coreutils}/bin/ln -s ${link} $out${path}