mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "foremost";
|
|
version = "1.5.7";
|
|
|
|
src = fetchurl {
|
|
sha256 = "0d2zxw0ijg8cd3ksgm8cf8jg128zr5x7z779jar90g9f47pm882h";
|
|
url = "http://foremost.sourceforge.net/pkg/${pname}-${version}.tar.gz";
|
|
};
|
|
|
|
patches = [ ./makefile.patch ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/{bin,share/man/man8}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 = licenses.publicDomain;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|