summary refs log tree commit diff
path: root/pkgs/tools/filesystems/jfsrec/default.nix
blob: fb5b72d714af4e4bee3ba75e6e818eccd6180ef7 (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
{ stdenv, fetchurl, boost }:

stdenv.mkDerivation {
  name = "jfsrec-pre-svn-7";
  
  src = fetchurl {
    url = mirror://sourceforge/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";
  };
}