git.iko.soy/typeable/nixpkgs
on master help sign in
Add foremost 1.5.7: recover some files based on contents
commit29e07d0e6e356e07a59c3d34c8ae01285fb4bc77 authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateTue 21 Apr 2015, 00:51 (12 years ago) parent7585d42
2 files changed+41
pkgs/tools/system/foremost/default.nix+39 pkgs/top-level/all-packages.nix+2
pkgs/tools/system/foremost/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchurl }:
2+
3+let version = "1.5.7"; in
4+stdenv.mkDerivation rec {
5+ name = "foremost-${version}";
6+
7+ src = fetchurl {
8+ sha256 = "0d2zxw0ijg8cd3ksgm8cf8jg128zr5x7z779jar90g9f47pm882h";
9+ url = "http://foremost.sourceforge.net/pkg/${name}.tar.gz";
10+ };
11+
12+ meta = with stdenv.lib; {
13+ inherit version;
14+ description = "Recover files based on their contents";
15+ longDescription = ''
16+ Foremost is a console program to recover files based on their headers,
17+ footers, and internal data structures. Foremost can work on image files, such
18+ as those generated by dd, Safeback, Encase, etc, or directly on a drive.
19+ The headers and footers can be specified by a configuration file or you can
20+ use command line switches to specify built-in file types. These built-in types
21+ look at the data structures of a given file format allowing for a more
22+ reliable and faster recovery.
23+ '';
24+ homepage = http://foremost.sourceforge.net/;
25+ license = with licenses; publicDomain;
26+ platforms = with platforms; linux;
27+ maintainers = with maintainers; [ nckx ];
28+ };
29+
30+ patches = [ ./makefile.patch ];
31+
32+ makeFlags = "PREFIX=$(out)";
33+
34+ enableParallelBuilding = true;
35+
36+ preInstall = ''
37+ mkdir -p $out/{bin,share/man/man8}
38+ '';
39+}
pkgs/top-level/all-packages.nix+2
@@ -1349,6 +1349,8 @@ let
13491349 withGTK = true;
13501350 };
13511351
1352+ foremost = callPackage ../tools/system/foremost { };
1353+
13521354 forktty = callPackage ../os-specific/linux/forktty {};
13531355
13541356 fortune = callPackage ../tools/misc/fortune { };