about summary refs log tree commit diff
path: root/pkgs/tools/system/testdisk-photorec/default.nix
blob: 5342cf857acc0efc2f85276f7d9e86a2dc36e318 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ stdenv
, fetchurl
, ncurses
, libuuid
, libjpeg
, zlib
, ntfs3g
, e2fsprogs
}:

stdenv.mkDerivation rec {
  name = "testdisk-photorec-${version}";
  version = "7.0";
  src = fetchurl {
    url = "https://www.cgsecurity.org/testdisk-${version}.tar.bz2";
    sha256 = "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0";
  };
  buildInputs = [
    ncurses
    libuuid
    # optional:
    libjpeg
    zlib
    ntfs3g
    e2fsprogs
    #libewf # makes it fail to build
    #qt4 # for qphotorec, which does not build in 7.0
  ];
  meta = with stdenv.lib; {
    homepage = https://www.cgsecurity.org/wiki/Main_Page;
    downloadPage = https://www.cgsecurity.org/wiki/TestDisk_Download;
    description = "Data recovery utilities";
    longDescription = ''
      TestDisk is a powerful free data recovery software. It was primarily
      designed to help recover lost partitions and/or make non-booting disks
      bootable again when these symptoms are caused by faulty software: certain
      types of viruses or human error (such as accidentally deleting a
      Partition Table).

      PhotoRec is a file data recovery software designed to recover lost files
      including video, documents and archives from hard disks, CD-ROMs, and
      lost pictures (thus the Photo Recovery name) from digital camera memory.
      PhotoRec ignores the file system and goes after the underlying data, so
      it will still work even if your media's file system has been severely
      damaged or reformatted.
    '';
    license = licenses.gpl2;
    maintainers = with maintainers; [ fgaz ];
  };
}