nixpkgs/pkgs/tools/compression/bzip3/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.2 KiB
Nix
Raw Normal View History

2022-05-20 05:31:51 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
2022-06-26 04:14:24 +00:00
, pkg-config
, testers
2022-05-20 05:31:51 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2022-05-20 05:31:51 +00:00
pname = "bzip3";
version = "1.4.0";
2022-05-20 05:31:51 +00:00
outputs = [ "bin" "dev" "out" ];
src = fetchFromGitHub {
owner = "kspalaiologos";
repo = "bzip3";
rev = finalAttrs.version;
hash = "sha256-UVCZWcjlueKSGYqdm7oiJ5i7/irkWv7IOyeCWT2r4sk=";
2022-05-20 05:31:51 +00:00
};
postPatch = ''
echo -n "${finalAttrs.version}" > .tarball-version
2022-05-20 05:31:51 +00:00
patchShebangs build-aux
# build-aux/ax_subst_man_date.m4 calls git if the file exists
rm .gitignore
2022-05-20 05:31:51 +00:00
'';
nativeBuildInputs = [
autoreconfHook
2022-06-26 04:14:24 +00:00
pkg-config
2022-05-20 05:31:51 +00:00
];
configureFlags = [
"--disable-arch-native"
2022-06-05 04:20:00 +00:00
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "--disable-link-time-optimization" ];
2022-05-20 05:31:51 +00:00
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
2022-05-20 05:31:51 +00:00
meta = {
description = "Better and stronger spiritual successor to BZip2";
homepage = "https://github.com/kspalaiologos/bzip3";
changelog = "https://github.com/kspalaiologos/bzip3/blob/${finalAttrs.src.rev}/NEWS";
2022-05-20 05:31:51 +00:00
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ dotlambda ];
pkgConfigModules = [ "bzip3" ];
2022-06-05 04:20:00 +00:00
platforms = lib.platforms.unix;
2022-05-20 05:31:51 +00:00
};
})