1 { lib, stdenv, fetchFromGitHub, which, zstd, pbzip2, installShellFiles }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "release-${version}";
11 fetchSubmodules = true;
12 hash = "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 ];
26 sharePath = "$out/share/${pname}";
30 installManPage makeself.1
31 install -Dm555 makeself.sh $out/bin/makeself
32 install -Dm444 -t ${sharePath}/ makeself.lsm README.md makeself-header.sh
37 sed -e "s|^HEADER=.*|HEADER=${sharePath}/makeself-header.sh|" -i $out/bin/makeself
41 homepage = "https://makeself.io";
42 description = "Utility to create self-extracting packages";
43 license = licenses.gpl2;
44 maintainers = [ maintainers.wmertens ];
45 platforms = platforms.all;
46 mainProgram = "makeself";