1 { lib, stdenv, fetchFromGitHub, which, zstd, pbzip2, installShellFiles }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "release-${version}";
11 fetchSubmodules = true;
12 sha256 = "sha256-15lUtErGsbXF2Gn0f0rvA18mMuVMmkKrGO2poeYZU9g=";
15 nativeBuildInputs = [ installShellFiles ];
17 postPatch = "patchShebangs test";
19 # Issue #110149: our default /bin/sh apparently has 32-bit math only
20 # (attribute busybox-sandbox-shell), and that causes problems
21 # when running these tests inside build, based on free disk space.
24 nativeCheckInputs = [ which zstd pbzip2 ];
28 installManPage makeself.1
29 install -Dm555 makeself.sh $out/bin/makeself
30 install -Dm444 -t $out/share/${pname}/ makeself.lsm README.md makeself-header.sh
35 sed -e "s|^HEADER=.*|HEADER=$out/share/${pname}-${version}/makeself-header.sh|" -i $out/bin/makeself
39 homepage = "https://makeself.io";
40 description = "Utility to create self-extracting packages";
41 license = licenses.gpl2;
42 maintainers = [ maintainers.wmertens ];
43 platforms = platforms.all;