requireFile: use correct absolute path syntax

This commit is contained in:
Domen Kožar 2016-01-14 14:13:51 +01:00
parent d432b4d70f
commit 622eb5f699

View file

@ -108,7 +108,7 @@ rec {
using either using either
nix-store --add-fixed ${hashAlgo} ${name_} nix-store --add-fixed ${hashAlgo} ${name_}
or or
nix-prefetch-url --type ${hashAlgo} file://path/to/${name_} nix-prefetch-url --type ${hashAlgo} file:///path/to/${name_}
''; '';
hashAlgo = if sha256 != null then "sha256" else "sha1"; hashAlgo = if sha256 != null then "sha256" else "sha1";
hash = if sha256 != null then sha256 else sha1; hash = if sha256 != null then sha256 else sha1;