2021-02-05 17:12:51 +00:00
|
|
|
{ lib, multiStdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let version = "1.7.4"; in
|
|
|
|
multiStdenv.mkDerivation {
|
|
|
|
name = "statifier-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";
|
|
|
|
sha256 = "03lzkla6knjhh186b43cac410x2fmhi28pkmzb3d211n3zp5i9y8";
|
|
|
|
};
|
|
|
|
|
|
|
|
phaseNames = [ "patchPhase" "installPhase" ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier
|
|
|
|
sed -e s@/bin/bash@"${multiStdenv.shell}"@g -i src/*.sh
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tool for creating static Linux binaries";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|