nixpkgs-suyu/pkgs/tools/filesystems/jfsrec/default.nix
Lluís Batlle i Rossell be72ec22e0 Fixing the build of jfsrec under gcc 4.4, taking a patch from archlinux.
svn path=/nixpkgs/branches/stdenv-updates/; revision=19481
2010-01-16 14:59:04 +00:00

23 lines
532 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";
};
patches = [ ./jfsrec-gcc-4.3.patch ];
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";
};
}