From 218c58ef333e6968caa846612bdee162517b3b53 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 7 Mar 2017 22:26:07 +0100 Subject: writers.link: mkdir when path is absolute --- krebs/5pkgs/writers.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'krebs') 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 ; 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} -- cgit v1.2.3