statifier 1.6.15 -> 1.7.3

Also switch to mkDerivation and fix build on amd64.
This commit is contained in:
Tobias Geerinckx-Rice 2015-05-22 11:30:39 +02:00
parent c4a2f4f4b1
commit 8d98f626a1
2 changed files with 14 additions and 20 deletions

View File

@ -1,31 +1,25 @@
a :
let
fetchurl = a.fetchurl;
{ stdenv, fetchurl, gcc_multi, glibc_multi }:
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 {
url = "mirror://sourceforge/statifier/statifier-${version}.tar.gz";
sha256 = "0lhdbp7hc15nn6r31yxx7i993a5k8926n5r6j2gi2vvkmf1hciqf";
sha256 = "0jc67kq3clkdwvahpr2bjp2zix4j7z7z8b7bcn1b3g3sybh1cbd6";
};
inherit buildInputs;
configureFlags = [];
buildInputs = [ gcc_multi glibc_multi ];
/* doConfigure should be removed if not needed */
phaseNames = ["fixPaths" "doMakeInstall"];
phaseNames = [ "patchPhase" "installPhase" ];
fixPaths = a.fullDepEntry (''
postPatch = ''
sed -e s@/usr/@"$out/"@g -i */Makefile src/statifier
sed -e s@/bin/bash@"$shell"@g -i src/*.sh
'') ["minInit" "doUnpack"];
sed -e s@/bin/bash@"${stdenv.shell}"@g -i src/*.sh
'';
name = "statifier-" + version;
meta = {
meta = with stdenv.lib; {
description = "Tool for creating static Linux binaries";
platforms = with platforms; [ linux ];
};
}

View File

@ -9811,7 +9811,7 @@ let
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 {
configFile = "user";