1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/development/libraries/iso-codes/default.nix
R. RyanTM 6807f6b154 isocodes: 4.3 -> 4.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/iso-codes/versions
2019-10-22 09:23:38 +02:00

28 lines
747 B
Nix

{stdenv, fetchurl, gettext, python3}:
stdenv.mkDerivation rec {
pname = "iso-codes";
version = "4.4";
src = fetchurl {
url = "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.bz2";
sha256 = "02x0wcz783ammkdrmrh31wsmww481xbkbz70vf766ivbnn5sfxn6";
};
patchPhase = ''
for i in `find . -name \*.py`
do
sed -i -e "s|#!/usr/bin/env python|#!${python3}/bin/python|" $i
done
'';
nativeBuildInputs = [ gettext python3 ];
meta = with stdenv.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;
};
}