diff options
author | tv <tv@krebsco.de> | 2017-03-07 22:26:07 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-03-07 22:26:07 +0100 |
commit | 218c58ef333e6968caa846612bdee162517b3b53 (patch) | |
tree | d75f92a51d97ddd95313970a4ed75ac861c7b497 /krebs/5pkgs/writers.nix | |
parent | 0edb13f3fc16e6456e5deb4e006595491a6b197e (diff) |
writers.link: mkdir when path is absolute
Diffstat (limited to 'krebs/5pkgs/writers.nix')
-rw-r--r-- | krebs/5pkgs/writers.nix | 2 |
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} |