3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/statifier/default.nix
John Ericson 558c96fe13 treewide: Cleanup usage of multi-arch tools
- Don't needlessly force GCC

 - Prefer using multi-arch stdenvs to using multi-arch tools directly.
2017-12-27 15:15:45 -05:00

24 lines
605 B
Nix

{ multiStdenv, fetchurl }:
let version = "1.7.4"; in
multiStdenv.mkDerivation {
name = "statifier-${version}";
src = fetchurl {
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";
sha256 = "03lzkla6knjhh186b43cac410x2fmhi28pkmzb3d211n3zp5i9y8";
};
phaseNames = [ "patchPhase" "installPhase" ];
postPatch = ''
sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier
sed -e s@/bin/bash@"${multiStdenv.shell}"@g -i src/*.sh
'';
meta = with multiStdenv.lib; {
description = "Tool for creating static Linux binaries";
platforms = platforms.linux;
};
}