mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 20:11:43 +03:00
guile-lint: use substituteInPlace instead of sed for prePatch
This commit is contained in:
parent
ea4adc5f5f
commit
89238b8628
@ -16,9 +16,8 @@ in stdenv.mkDerivation {
|
||||
unpackPhase = ''tar xjvf "$src" && sourceRoot="$PWD/${name}"'';
|
||||
|
||||
prePatch = ''
|
||||
cat guile-lint.in | \
|
||||
sed 's|^exec guile|exec $\{GUILE:-${guile}/bin/guile}|g' > ,,tmp && \
|
||||
mv ,,tmp guile-lint.in
|
||||
substituteInPlace guile-lint.in --replace \
|
||||
"exec guile" "exec ${guile}/bin/guile"
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
Loading…
Reference in New Issue
Block a user