Fix makeself header path

This commit is contained in:
Mel Bourgeois 2024-02-16 20:34:20 -06:00
parent d4b4953d0d
commit 0d872ff580
No known key found for this signature in database
GPG key ID: 290FCF081AEDB3EC

View file

@ -23,16 +23,18 @@ stdenv.mkDerivation rec {
checkTarget = "test";
nativeCheckInputs = [ which zstd pbzip2 ];
sharePath = "$out/share/${pname}";
installPhase = ''
runHook preInstall
installManPage makeself.1
install -Dm555 makeself.sh $out/bin/makeself
install -Dm444 -t $out/share/${pname}/ makeself.lsm README.md makeself-header.sh
install -Dm444 -t ${sharePath}/ makeself.lsm README.md makeself-header.sh
runHook postInstall
'';
fixupPhase = ''
sed -e "s|^HEADER=.*|HEADER=$out/share/${pname}-${version}/makeself-header.sh|" -i $out/bin/makeself
sed -e "s|^HEADER=.*|HEADER=${sharePath}/makeself-header.sh|" -i $out/bin/makeself
'';
meta = with lib; {