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