summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@users.noreply.github.com>2018-08-23 22:40:54 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-08-23 22:40:54 +0200
commit599963c81e3118c0c1eb02ffc3c1ff2155b5d80b (patch)
tree21f18504320f4c5ed45502893d1bcd87f7e1f648 /pkgs/tools/system
parent70d5f16898a5a4cac06229af9263d14ecef7b085 (diff)
downloadnixpkgs-599963c81e3118c0c1eb02ffc3c1ff2155b5d80b.tar
nixpkgs-599963c81e3118c0c1eb02ffc3c1ff2155b5d80b.tar.gz
nixpkgs-599963c81e3118c0c1eb02ffc3c1ff2155b5d80b.tar.bz2
nixpkgs-599963c81e3118c0c1eb02ffc3c1ff2155b5d80b.tar.lz
nixpkgs-599963c81e3118c0c1eb02ffc3c1ff2155b5d80b.tar.xz
nixpkgs-599963c81e3118c0c1eb02ffc3c1ff2155b5d80b.tar.zst
nixpkgs-599963c81e3118c0c1eb02ffc3c1ff2155b5d80b.zip
testdisk-photorec: init at 7.0 (#45329)
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/testdisk-photorec/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/tools/system/testdisk-photorec/default.nix b/pkgs/tools/system/testdisk-photorec/default.nix
new file mode 100644
index 00000000000..5342cf857ac
--- /dev/null
+++ b/pkgs/tools/system/testdisk-photorec/default.nix
@@ -0,0 +1,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 ];
+  };
+}
+