blob: b4e37a36ff52b4d12b5ca36e6cfb5ca18971b3f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
a :
let
fetchurl = a.fetchurl;
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";
};
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";
};
}
|