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