2024-02-29 20:09:43 +00:00
|
|
|
{ lib, stdenv, fetchurl, gettext, python3, testers }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "iso-codes";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "4.16.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-02-29 20:09:43 +00:00
|
|
|
url = with finalAttrs; "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/v${version}/${pname}-v${version}.tar.gz";
|
|
|
|
sha256 = "sha256-fJkPw5oFl1vtsBdeP/Cfw4MEiBX2i0Yqu/BVqAMuZsw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gettext python3 ];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
passthru.tests = {
|
|
|
|
pkg-config = testers.hasPkgConfigModules {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://salsa.debian.org/iso-codes-team/iso-codes";
|
|
|
|
description = "Various ISO codes packaged as XML files";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.all;
|
2024-02-29 20:09:43 +00:00
|
|
|
pkgConfigModules = [ "iso-codes" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-02-29 20:09:43 +00:00
|
|
|
})
|