2015-05-22 11:30:39 +02:00
|
|
|
{ stdenv, fetchurl, gcc_multi, glibc_multi }:
|
|
|
|
|
|
|
|
let version = "1.7.3"; in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
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";
|
2015-05-22 11:30:39 +02:00
|
|
|
sha256 = "0jc67kq3clkdwvahpr2bjp2zix4j7z7z8b7bcn1b3g3sybh1cbd6";
|
2009-07-09 23:34:29 +02:00
|
|
|
};
|
|
|
|
|
2015-05-22 11:30:39 +02:00
|
|
|
buildInputs = [ gcc_multi glibc_multi ];
|
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
|
2015-05-22 11:30:39 +02:00
|
|
|
sed -e s@/bin/bash@"${stdenv.shell}"@g -i src/*.sh
|
|
|
|
'';
|
2015-07-20 12:04:43 +02:00
|
|
|
|
2015-05-22 11:30:39 +02:00
|
|
|
meta = with stdenv.lib; {
|
2009-07-09 23:34:29 +02:00
|
|
|
description = "Tool for creating static Linux binaries";
|
2015-07-20 12:04:43 +02:00
|
|
|
platforms = with platforms; linux;
|
2009-07-09 23:34:29 +02:00
|
|
|
};
|
|
|
|
}
|