571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
57 lines
1.5 KiB
Nix
57 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, testers
|
|
, pxz
|
|
, xz
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pxz";
|
|
version = "4.999.9beta";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jnovy";
|
|
repo = "pxz";
|
|
rev = "124382a6d0832b13b7c091f72264f8f3f463070a";
|
|
hash = "sha256-NYhPujm5A0j810IKUZEHru/oLXCW7xZf5FjjKAbatZY=";
|
|
};
|
|
|
|
patches = [ ./flush-stdout-help-version.patch ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace '`date +%Y%m%d`' '19700101'
|
|
|
|
substituteInPlace pxz.c \
|
|
--replace 'XZ_BINARY "xz"' 'XZ_BINARY "${lib.getBin xz}/bin/xz"'
|
|
'';
|
|
|
|
buildInputs = [ xz ];
|
|
|
|
makeFlags = [
|
|
"BINDIR=${placeholder "out"}/bin"
|
|
"MANDIR=${placeholder "out"}/share/man"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = pxz;
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://jnovy.fedorapeople.org/pxz/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ pashev ];
|
|
description = "compression utility that runs LZMA compression of different parts on multiple cores simultaneously";
|
|
longDescription = ''
|
|
Parallel XZ is a compression utility that takes advantage of
|
|
running LZMA compression of different parts of an input file on multiple
|
|
cores and processors simultaneously. Its primary goal is to utilize all
|
|
resources to speed up compression time with minimal possible influence
|
|
on compression ratio
|
|
'';
|
|
mainProgram = "pxz";
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|