From 29e07d0e6e356e07a59c3d34c8ae01285fb4bc77 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 21 Apr 2015 00:51:42 +0200 Subject: [PATCH] Add foremost 1.5.7: recover some files based on contents --- pkgs/tools/system/foremost/default.nix | 39 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/tools/system/foremost/default.nix diff --git a/pkgs/tools/system/foremost/default.nix b/pkgs/tools/system/foremost/default.nix new file mode 100644 index 00000000000..baaa97b4b24 --- /dev/null +++ b/pkgs/tools/system/foremost/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl }: + +let version = "1.5.7"; in +stdenv.mkDerivation rec { + name = "foremost-${version}"; + + src = fetchurl { + sha256 = "0d2zxw0ijg8cd3ksgm8cf8jg128zr5x7z779jar90g9f47pm882h"; + url = "http://foremost.sourceforge.net/pkg/${name}.tar.gz"; + }; + + meta = with stdenv.lib; { + inherit version; + description = "Recover files based on their contents"; + longDescription = '' + Foremost is a console program to recover files based on their headers, + footers, and internal data structures. Foremost can work on image files, such + as those generated by dd, Safeback, Encase, etc, or directly on a drive. + The headers and footers can be specified by a configuration file or you can + use command line switches to specify built-in file types. These built-in types + look at the data structures of a given file format allowing for a more + reliable and faster recovery. + ''; + homepage = http://foremost.sourceforge.net/; + license = with licenses; publicDomain; + platforms = with platforms; linux; + maintainers = with maintainers; [ nckx ]; + }; + + patches = [ ./makefile.patch ]; + + makeFlags = "PREFIX=$(out)"; + + enableParallelBuilding = true; + + preInstall = '' + mkdir -p $out/{bin,share/man/man8} + ''; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 618392a1b74..45a0b8bb440 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1349,6 +1349,8 @@ let withGTK = true; }; + foremost = callPackage ../tools/system/foremost { }; + forktty = callPackage ../os-specific/linux/forktty {}; fortune = callPackage ../tools/misc/fortune { };