mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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 :
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user