statifier 1.6.15 -> 1.7.3
Also switch to mkDerivation and fix build on amd64.
This commit is contained in:
parent
c4a2f4f4b1
commit
8d98f626a1
@ -1,31 +1,25 @@
|
|||||||
a :
|
{ stdenv, fetchurl, gcc_multi, glibc_multi }:
|
||||||
let
|
|
||||||
fetchurl = a.fetchurl;
|
let version = "1.7.3"; in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "statifier-${version}";
|
||||||
|
|
||||||
version = a.lib.attrByPath ["version"] "1.6.15" a;
|
|
||||||
buildInputs = with a; [
|
|
||||||
|
|
||||||
];
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";
|
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";
|
||||||
sha256 = "0lhdbp7hc15nn6r31yxx7i993a5k8926n5r6j2gi2vvkmf1hciqf";
|
sha256 = "0jc67kq3clkdwvahpr2bjp2zix4j7z7z8b7bcn1b3g3sybh1cbd6";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit buildInputs;
|
buildInputs = [ gcc_multi glibc_multi ];
|
||||||
configureFlags = [];
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
phaseNames = [ "patchPhase" "installPhase" ];
|
||||||
phaseNames = ["fixPaths" "doMakeInstall"];
|
|
||||||
|
|
||||||
fixPaths = a.fullDepEntry (''
|
postPatch = ''
|
||||||
sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier
|
sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier
|
||||||
sed -e s@/bin/bash@"$shell"@g -i src/*.sh
|
sed -e s@/bin/bash@"${stdenv.shell}"@g -i src/*.sh
|
||||||
'') ["minInit" "doUnpack"];
|
'';
|
||||||
|
|
||||||
name = "statifier-" + version;
|
meta = with stdenv.lib; {
|
||||||
meta = {
|
|
||||||
description = "Tool for creating static Linux binaries";
|
description = "Tool for creating static Linux binaries";
|
||||||
|
platforms = with platforms; [ linux ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -9811,7 +9811,7 @@ let
|
|||||||
|
|
||||||
smem = callPackage ../os-specific/linux/smem { };
|
smem = callPackage ../os-specific/linux/smem { };
|
||||||
|
|
||||||
statifier = builderDefsPackage (import ../os-specific/linux/statifier) { };
|
statifier = callPackage ../os-specific/linux/statifier { };
|
||||||
|
|
||||||
spl = callPackage ../os-specific/linux/spl {
|
spl = callPackage ../os-specific/linux/spl {
|
||||||
configFile = "user";
|
configFile = "user";
|
||||||
|
Loading…
Reference in New Issue
Block a user