mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-10 07:43:13 +00:00
30 lines
819 B
Nix
30 lines
819 B
Nix
{ lib, stdenv, fetchurl, gettext, python3, testers }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "iso-codes";
|
|
version = "4.16.0";
|
|
|
|
src = fetchurl {
|
|
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=";
|
|
};
|
|
|
|
nativeBuildInputs = [ gettext python3 ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.tests = {
|
|
pkg-config = testers.hasPkgConfigModules {
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://salsa.debian.org/iso-codes-team/iso-codes";
|
|
description = "Various ISO codes packaged as XML files";
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.all;
|
|
pkgConfigModules = [ "iso-codes" ];
|
|
};
|
|
})
|