mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
26 lines
653 B
Nix
26 lines
653 B
Nix
{ stdenv, fetchurl, gcc_multi, glibc_multi }:
|
|
|
|
let version = "1.7.4"; in
|
|
stdenv.mkDerivation {
|
|
name = "statifier-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";
|
|
sha256 = "03lzkla6knjhh186b43cac410x2fmhi28pkmzb3d211n3zp5i9y8";
|
|
};
|
|
|
|
buildInputs = [ gcc_multi glibc_multi ];
|
|
|
|
phaseNames = [ "patchPhase" "installPhase" ];
|
|
|
|
postPatch = ''
|
|
sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier
|
|
sed -e s@/bin/bash@"${stdenv.shell}"@g -i src/*.sh
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Tool for creating static Linux binaries";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|