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

24 lines
605 B
Nix
Raw Normal View History

{ multiStdenv, fetchurl }:
2017-06-21 00:12:38 +01:00
let version = "1.7.4"; in
multiStdenv.mkDerivation {
name = "statifier-${version}";
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";
};
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
'';
2015-07-20 11:04:43 +01:00
meta = with multiStdenv.lib; {
description = "Tool for creating static Linux binaries";
platforms = platforms.linux;
};
}