Files
nixpkgs/pkgs/os-specific/linux/statifier/default.nix
T

26 lines
653 B
Nix
Raw Normal View History

2015-05-22 11:30:39 +02:00
{ stdenv, fetchurl, gcc_multi, glibc_multi }:
2017-06-21 01:12:38 +02:00
let version = "1.7.4"; in
2015-05-22 11:30:39 +02:00
stdenv.mkDerivation {
name = "statifier-${version}";
src = fetchurl {
2013-07-14 04:17:07 +03:00
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";
2017-06-21 01:12:38 +02:00
sha256 = "03lzkla6knjhh186b43cac410x2fmhi28pkmzb3d211n3zp5i9y8";
};
2015-05-22 11:30:39 +02:00
buildInputs = [ gcc_multi glibc_multi ];
2015-05-22 11:30:39 +02:00
phaseNames = [ "patchPhase" "installPhase" ];
2015-05-22 11:30:39 +02:00
postPatch = ''
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; {
description = "Tool for creating static Linux binaries";
platforms = platforms.linux;
};
}