7f5b839524
`selectVersion ./foo "bar"' instead of `import ./foo/bar.nix'. * Replaced `with args' with formal function arguments in several packages. * Renamed several files to `default.nix'. As a general rule, version numbers should only be included in the filename when there is a reason to keep multiple versions of a package in Nixpkgs. Otherwise, it just makes it harder to update the package. svn path=/nixpkgs/trunk/; revision=18403
23 lines
492 B
Nix
23 lines
492 B
Nix
{ stdenv, fetchurl, boost }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "jfsrec-pre-svn-7";
|
|
|
|
src = fetchurl {
|
|
url = http://downloads.sourceforge.net/jfsrec/jfsrec-svn-7.tar.gz;
|
|
sha256 = "163z6ljr05vw2k5mj4fim2nlg4khjyibrii95370pvn474mg28vg";
|
|
};
|
|
|
|
buildInputs = [ boost ];
|
|
|
|
preConfigure =
|
|
''
|
|
sed -e '/[#]include [<]config.h[>]/a\#include <string.h>' -i src/unicode_to_utf8.cpp
|
|
cat src/unicode_to_utf8.cpp
|
|
'';
|
|
|
|
meta = {
|
|
description = "JFS recovery tool";
|
|
};
|
|
}
|