etlegacy: replace writeScriptBin with writeShellApplication

This commit is contained in:
Pol Dellaiera 2023-08-20 23:42:49 +02:00
parent 3c9d06797b
commit d998c261cc
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -2,7 +2,7 @@
stdenv,
lib,
makeWrapper,
writeScriptBin,
writeShellApplication,
fetchFromGitHub,
fetchurl,
cmake,
@ -45,12 +45,15 @@
hash = "sha256-pIq3SaGhKrTZE3KGsfI9ZCwp2lmEWyuvyPZOBSzwbz4=";
};
fakeGit = writeScriptBin "git" ''
#! ${stdenv.shell} -e
if [ "$1" = "describe" ]; then
echo "${version}"
fi
'';
fakeGit = writeShellApplication {
name = "git";
text = ''
if [ "$1" = "describe" ]; then
echo "${version}"
fi
'';
};
in
stdenv.mkDerivation {
pname = "etlegacy";