mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Merge pull request #289436 from Smona/fix-makeself-header-path
makeself: fix header path error
This commit is contained in:
commit
65fefca297
@ -23,16 +23,18 @@ stdenv.mkDerivation rec {
|
|||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
nativeCheckInputs = [ which zstd pbzip2 ];
|
nativeCheckInputs = [ which zstd pbzip2 ];
|
||||||
|
|
||||||
|
sharePath = "$out/share/${pname}";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
installManPage makeself.1
|
installManPage makeself.1
|
||||||
install -Dm555 makeself.sh $out/bin/makeself
|
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
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
fixupPhase = ''
|
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; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user