mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
52647ea3b0
svn path=/nixpkgs/trunk/; revision=15662
28 lines
758 B
Nix
28 lines
758 B
Nix
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";
|
|
};
|
|
}
|