libzip: Add meta.pkgConfigModules
and test
This commit is contained in:
parent
8e24bfb36a
commit
0c9a9dd455
|
@ -12,14 +12,15 @@
|
||||||
, openssl
|
, openssl
|
||||||
, withZstd ? false
|
, withZstd ? false
|
||||||
, zstd
|
, zstd
|
||||||
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "libzip";
|
pname = "libzip";
|
||||||
version = "1.9.2";
|
version = "1.9.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://libzip.org/download/${pname}-${version}.tar.gz";
|
url = "https://libzip.org/download/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "sha256-/Wp/dF3j1pz1YD7cnLM9KJDwGY5BUlXQmHoM8Q2CTG8=";
|
sha256 = "sha256-/Wp/dF3j1pz1YD7cnLM9KJDwGY5BUlXQmHoM8Q2CTG8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -41,11 +42,14 @@ stdenv.mkDerivation rec {
|
||||||
patchShebangs regress
|
patchShebangs regress
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://libzip.org/";
|
homepage = "https://libzip.org/";
|
||||||
description = "A C library for reading, creating and modifying zip archives";
|
description = "A C library for reading, creating and modifying zip archives";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
pkgConfigModules = [ "libzip" ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
changelog = "https://github.com/nih-at/libzip/blob/v${version}/NEWS.md";
|
changelog = "https://github.com/nih-at/libzip/blob/v${version}/NEWS.md";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue