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
30 lines
777 B
Nix
30 lines
777 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pax";
|
|
version = "20201030";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.mirbsd.org/MirOS/dist/mir/cpio/paxmirabilis-${version}.tgz";
|
|
sha256 = "1p18nxijh323f4i1s2pg7pcr0557xljl5avv8ll5s9nfr34r5j0w";
|
|
};
|
|
|
|
buildPhase = ''
|
|
sh Build.sh -r -tpax
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -Dm555 pax $out/bin/pax
|
|
ln -s $out/bin/pax $out/bin/paxcpio
|
|
ln -s $out/bin/pax $out/bin/paxtar
|
|
install -Dm444 mans/pax{,cpio,tar}.1 -t $out/share/man/man1/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "POSIX standard archive tool from MirBSD";
|
|
homepage = "https://www.mirbsd.org/pax.htm";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ gebner ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|