Adding statifier, a tool to make pseudostatic binaries. Unfortunately, statified NixOS-built binaries segfault on Ubuntu..
svn path=/nixpkgs/trunk/; revision=16291
This commit is contained in:
parent
df646c8ae4
commit
1744fe5183
31
pkgs/os-specific/linux/statifier/default.nix
Normal file
31
pkgs/os-specific/linux/statifier/default.nix
Normal file
@ -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";
|
||||||
|
};
|
||||||
|
}
|
@ -5513,6 +5513,9 @@ let
|
|||||||
inherit fetchurl stdenv zlib;
|
inherit fetchurl stdenv zlib;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
statifier = builderDefsPackage (import ../os-specific/linux/statifier) {
|
||||||
|
};
|
||||||
|
|
||||||
sysfsutils = import ../os-specific/linux/sysfsutils {
|
sysfsutils = import ../os-specific/linux/sysfsutils {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user