at 16.09-beta 40 lines 1.3 kB view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "foremost-${version}"; 5 version = "1.5.7"; 6 7 src = fetchurl { 8 sha256 = "0d2zxw0ijg8cd3ksgm8cf8jg128zr5x7z779jar90g9f47pm882h"; 9 url = "http://foremost.sourceforge.net/pkg/${name}.tar.gz"; 10 }; 11 12 patches = [ ./makefile.patch ]; 13 14 makeFlags = [ "PREFIX=$(out)" ]; 15 16 enableParallelBuilding = true; 17 18 hardeningDisable = [ "format" ]; 19 20 preInstall = '' 21 mkdir -p $out/{bin,share/man/man8} 22 ''; 23 24 meta = with stdenv.lib; { 25 description = "Recover files based on their contents"; 26 longDescription = '' 27 Foremost is a console program to recover files based on their headers, 28 footers, and internal data structures. Foremost can work on image files, such 29 as those generated by dd, Safeback, Encase, etc, or directly on a drive. 30 The headers and footers can be specified by a configuration file or you can 31 use command line switches to specify built-in file types. These built-in types 32 look at the data structures of a given file format allowing for a more 33 reliable and faster recovery. 34 ''; 35 homepage = http://foremost.sourceforge.net/; 36 license = licenses.publicDomain; 37 platforms = platforms.linux; 38 maintainers = with maintainers; [ nckx ]; 39 }; 40}