diff options
Diffstat (limited to 'pkgs/os-specific/linux/statifier')
-rw-r--r-- | pkgs/os-specific/linux/statifier/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/statifier/default.nix b/pkgs/os-specific/linux/statifier/default.nix new file mode 100644 index 00000000000..4e28dce1670 --- /dev/null +++ b/pkgs/os-specific/linux/statifier/default.nix @@ -0,0 +1,31 @@ +a : +let + fetchurl = a.fetchurl; + + version = a.lib.attrByPath ["version"] "1.6.15" a; + buildInputs = with a; [ + + ]; +in +rec { + src = fetchurl { + url = "http://sourceforge.net/projects/statifier/files/statifier/statifier-${version}.tar.gz"; + sha256 = "0lhdbp7hc15nn6r31yxx7i993a5k8926n5r6j2gi2vvkmf1hciqf"; + }; + + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be removed if not needed */ + phaseNames = ["fixPaths" "doMakeInstall"]; + + fixPaths = a.fullDepEntry ('' + sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier + sed -e s@/bin/bash@"$shell"@g -i src/*.sh + '') ["minInit" "doUnpack"]; + + name = "statifier-" + version; + meta = { + description = "Tool for creating static Linux binaries"; + }; +} |