blob: 48ec07bbe8ad2e28bb55ca2b7f58d9f0d907b01e (
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
|
args : with args;
rec {
src = fetchurl {
url = http://downloads.sourceforge.net/jfsrec/jfsrec-svn-7.tar.gz;
sha256 = "163z6ljr05vw2k5mj4fim2nlg4khjyibrii95370pvn474mg28vg";
};
buildInputs = [boost];
configureFlags = [];
doFixBoost = FullDepEntry (''
sed -e 's/-lboost_[a-z_]*/&-mt/g' -i src/Makefile.in
'') ["minInit" "doUnpack"];
doFixInc = FullDepEntry (''
sed -e '/[#]include [<]config.h[>]/a\#include <string.h>' -i src/unicode_to_utf8.cpp
cat src/unicode_to_utf8.cpp
'') ["minInit" "doUnpack"];
/* doConfigure should be specified separately */
phaseNames = ["doFixBoost" "doFixInc" "doConfigure" "doMakeInstall"];
name = "jfsrec-" + version;
meta = {
description = "JFS recovery tool";
};
}
|