2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2015-04-21 00:51:42 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "foremost";
|
2016-01-24 20:31:44 +01:00
|
|
|
version = "1.5.7";
|
2015-04-21 00:51:42 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
sha256 = "0d2zxw0ijg8cd3ksgm8cf8jg128zr5x7z779jar90g9f47pm882h";
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://foremost.sourceforge.net/pkg/${pname}-${version}.tar.gz";
|
2015-04-21 00:51:42 +02:00
|
|
|
};
|
|
|
|
|
2015-11-26 18:44:44 +01:00
|
|
|
patches = [ ./makefile.patch ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-11 00:37:25 +01:00
|
|
|
|
2015-11-26 18:44:44 +01:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/{bin,share/man/man8}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-04-21 00:51:42 +02:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://foremost.sourceforge.net/";
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.publicDomain;
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.linux;
|
2015-04-21 00:51:42 +02:00
|
|
|
};
|
|
|
|
}
|