tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
makeself: use installManPage
Daniel Nagy
2 years ago
2e5597d5
6342746d
+8
-6
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
makeself
default.nix
+8
-6
pkgs/applications/misc/makeself/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, which, zstd, pbzip2 }:
1
1
+
{ lib, stdenv, fetchFromGitHub, which, zstd, pbzip2, installShellFiles }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
version = "2.4.5";
···
11
11
fetchSubmodules = true;
12
12
sha256 = "sha256-15lUtErGsbXF2Gn0f0rvA18mMuVMmkKrGO2poeYZU9g=";
13
13
};
14
14
+
15
15
+
nativeBuildInputs = [ installShellFiles ];
14
16
15
17
postPatch = "patchShebangs test";
16
18
···
22
24
nativeCheckInputs = [ which zstd pbzip2 ];
23
25
24
26
installPhase = ''
25
25
-
mkdir -p $out/{bin,share/{${pname}-${version},man/man1}}
26
26
-
cp makeself.lsm README.md $out/share/${pname}-${version}
27
27
-
cp makeself.sh $out/bin/makeself
28
28
-
cp makeself.1 $out/share/man/man1/
29
29
-
cp makeself-header.sh $out/share/${pname}-${version}
27
27
+
runHook preInstall
28
28
+
installManPage makeself.1
29
29
+
install -Dm555 makeself.sh $out/bin/makeself
30
30
+
install -Dm444 -t $out/share/${pname}/ makeself.lsm README.md makeself-header.sh
31
31
+
runHook postInstall
30
32
'';
31
33
32
34
fixupPhase = ''