bzip3: Add meta.pkgConfigModules
and test
This commit is contained in:
parent
6ff065a44c
commit
839288b52a
1 changed files with 9 additions and 5 deletions
|
@ -3,9 +3,10 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "bzip3";
|
pname = "bzip3";
|
||||||
version = "1.2.2";
|
version = "1.2.2";
|
||||||
|
|
||||||
|
@ -14,12 +15,12 @@ stdenv.mkDerivation rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kspalaiologos";
|
owner = "kspalaiologos";
|
||||||
repo = "bzip3";
|
repo = "bzip3";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
hash = "sha256-B59Z7+5SFjt/UgppNtdUtzw96y+EVglHoKzq9Il9ud8=";
|
hash = "sha256-B59Z7+5SFjt/UgppNtdUtzw96y+EVglHoKzq9Il9ud8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
echo -n "${version}" > .tarball-version
|
echo -n "${finalAttrs.version}" > .tarball-version
|
||||||
patchShebangs build-aux
|
patchShebangs build-aux
|
||||||
|
|
||||||
# build-aux/ax_subst_man_date.m4 calls git if the file exists
|
# build-aux/ax_subst_man_date.m4 calls git if the file exists
|
||||||
|
@ -35,12 +36,15 @@ stdenv.mkDerivation rec {
|
||||||
"--disable-arch-native"
|
"--disable-arch-native"
|
||||||
] ++ lib.optionals stdenv.isDarwin [ "--disable-link-time-optimization" ];
|
] ++ lib.optionals stdenv.isDarwin [ "--disable-link-time-optimization" ];
|
||||||
|
|
||||||
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A better and stronger spiritual successor to BZip2";
|
description = "A better and stronger spiritual successor to BZip2";
|
||||||
homepage = "https://github.com/kspalaiologos/bzip3";
|
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;
|
license = lib.licenses.lgpl3Plus;
|
||||||
maintainers = with lib.maintainers; [ dotlambda ];
|
maintainers = with lib.maintainers; [ dotlambda ];
|
||||||
|
pkgConfigModules = [ "bzip3" ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue