mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 01:02:20 +00:00
libidn: Add meta.pkgConfigModules and test
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
{ fetchurl, lib, stdenv, libiconv }:
|
||||
{ fetchurl, lib, stdenv, libiconv
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libidn";
|
||||
version = "1.41";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/libidn/${pname}-${version}.tar.gz";
|
||||
url = "mirror://gnu/libidn/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
||||
sha256 = "sha256-iE1wY2S4Gr3Re+6Whtj/KudDHFoUZRBHxorfizH9iUU=";
|
||||
};
|
||||
|
||||
@@ -15,6 +17,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
||||
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
|
||||
meta = {
|
||||
homepage = "https://www.gnu.org/software/libidn/";
|
||||
description = "Library for internationalized domain names";
|
||||
@@ -36,7 +40,8 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
license = lib.licenses.lgpl2Plus;
|
||||
pkgConfigModules = [ "libidn" ];
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ lsix ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user