bzip3: Add meta.pkgConfigModules and test

This commit is contained in:
John Ericson 2023-02-10 20:26:38 -05:00
parent 6ff065a44c
commit 839288b52a

View File

@ -3,9 +3,10 @@
, fetchFromGitHub
, autoreconfHook
, pkg-config
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "bzip3";
version = "1.2.2";
@ -14,12 +15,12 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "kspalaiologos";
repo = "bzip3";
rev = version;
rev = finalAttrs.version;
hash = "sha256-B59Z7+5SFjt/UgppNtdUtzw96y+EVglHoKzq9Il9ud8=";
};
postPatch = ''
echo -n "${version}" > .tarball-version
echo -n "${finalAttrs.version}" > .tarball-version
patchShebangs build-aux
# build-aux/ax_subst_man_date.m4 calls git if the file exists
@ -35,12 +36,15 @@ stdenv.mkDerivation rec {
"--disable-arch-native"
] ++ lib.optionals stdenv.isDarwin [ "--disable-link-time-optimization" ];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
description = "A better and stronger spiritual successor to BZip2";
homepage = "https://github.com/kspalaiologos/bzip3";
changelog = "https://github.com/kspalaiologos/bzip3/blob/${src.rev}/NEWS";
changelog = "https://github.com/kspalaiologos/bzip3/blob/${finalAttrs.src.rev}/NEWS";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ dotlambda ];
pkgConfigModules = [ "bzip3" ];
platforms = lib.platforms.unix;
};
}
})