2021-01-24 00:40:18 +00:00
|
|
|
{ lib, multiStdenv, fetchurl }:
|
2015-05-22 09:30:39 +00:00
|
|
|
|
2022-01-10 22:30:11 +00:00
|
|
|
multiStdenv.mkDerivation rec {
|
|
|
|
pname = "statifier";
|
|
|
|
version = "1.7.4";
|
2009-07-09 21:34:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 01:17:07 +00:00
|
|
|
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";
|
2017-06-20 23:12:38 +00:00
|
|
|
sha256 = "03lzkla6knjhh186b43cac410x2fmhi28pkmzb3d211n3zp5i9y8";
|
2009-07-09 21:34:29 +00:00
|
|
|
};
|
|
|
|
|
2015-05-22 09:30:39 +00:00
|
|
|
phaseNames = [ "patchPhase" "installPhase" ];
|
2009-07-09 21:34:29 +00:00
|
|
|
|
2015-05-22 09:30:39 +00:00
|
|
|
postPatch = ''
|
2009-07-09 21:34:29 +00:00
|
|
|
sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier
|
2017-12-26 20:23:01 +00:00
|
|
|
sed -e s@/bin/bash@"${multiStdenv.shell}"@g -i src/*.sh
|
2015-05-22 09:30:39 +00:00
|
|
|
'';
|
2015-07-20 10:04:43 +00:00
|
|
|
|
2021-01-24 00:40:18 +00:00
|
|
|
meta = with lib; {
|
2009-07-09 21:34:29 +00:00
|
|
|
description = "Tool for creating static Linux binaries";
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2018-08-04 14:58:14 +00:00
|
|
|
license = licenses.gpl2;
|
2009-07-09 21:34:29 +00:00
|
|
|
};
|
|
|
|
}
|