2018-07-21 00:44:44 +00:00
|
|
|
{stdenv, fetchurl, gettext, python3}:
|
2009-04-17 15:08:14 +00:00
|
|
|
|
2010-12-14 10:21:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-30 00:03:17 +00:00
|
|
|
name = "iso-codes-${version}";
|
|
|
|
version = "3.79";
|
2017-03-14 01:29:03 +00:00
|
|
|
|
2009-04-17 15:08:14 +00:00
|
|
|
src = fetchurl {
|
2018-03-30 00:03:17 +00:00
|
|
|
url = "https://salsa.debian.org/iso-codes-team/iso-codes/uploads/ef8de8bc12e0512d26ed73436a477871/${name}.tar.xz";
|
|
|
|
sha256 = "08i8hjy0qjlw9kd9i87jx967ihwh45l2xi55q1aa5265sind7byb";
|
2009-04-17 15:08:14 +00:00
|
|
|
};
|
|
|
|
patchPhase = ''
|
|
|
|
for i in `find . -name \*.py`
|
|
|
|
do
|
2017-03-14 01:29:03 +00:00
|
|
|
sed -i -e "s|#!/usr/bin/env python|#!${python3}/bin/python|" $i
|
2009-04-17 15:08:14 +00:00
|
|
|
done
|
|
|
|
'';
|
2017-03-14 01:29:03 +00:00
|
|
|
buildInputs = [ gettext python3 ];
|
2010-12-14 10:21:38 +00:00
|
|
|
|
2017-03-14 01:29:03 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-09-02 18:13:36 +00:00
|
|
|
homepage = https://salsa.debian.org/iso-codes-team/iso-codes;
|
2010-12-14 10:21:38 +00:00
|
|
|
description = "Various ISO codes packaged as XML files";
|
2018-09-02 18:13:36 +00:00
|
|
|
license = licenses.lgpl21;
|
2017-03-14 01:29:03 +00:00
|
|
|
platforms = platforms.all;
|
2010-12-14 10:21:38 +00:00
|
|
|
};
|
2009-04-17 15:08:14 +00:00
|
|
|
}
|