writers.link: mkdir when path is absolute

This commit is contained in:
tv 2017-03-07 22:26:07 +01:00
parent 0edb13f3fc
commit 218c58ef33

View File

@ -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}