mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
libzip: Add meta.pkgConfigModules
and test
This commit is contained in:
parent
8e24bfb36a
commit
0c9a9dd455
@ -12,14 +12,15 @@
|
||||
, openssl
|
||||
, withZstd ? false
|
||||
, zstd
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libzip";
|
||||
version = "1.9.2";
|
||||
|
||||
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=";
|
||||
};
|
||||
|
||||
@ -41,11 +42,14 @@ stdenv.mkDerivation rec {
|
||||
patchShebangs regress
|
||||
'';
|
||||
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://libzip.org/";
|
||||
description = "A C library for reading, creating and modifying zip archives";
|
||||
license = licenses.bsd3;
|
||||
pkgConfigModules = [ "libzip" ];
|
||||
platforms = platforms.unix;
|
||||
changelog = "https://github.com/nih-at/libzip/blob/v${version}/NEWS.md";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user