2018-07-21 01:44:44 +01:00
|
|
|
{stdenv, fetchurl, gettext, python3}:
|
2009-04-17 16:08:14 +01:00
|
|
|
|
2010-12-14 10:21:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-30 01:03:17 +01:00
|
|
|
name = "iso-codes-${version}";
|
|
|
|
version = "3.79";
|
2017-03-14 01:29:03 +00:00
|
|
|
|
2009-04-17 16:08:14 +01:00
|
|
|
src = fetchurl {
|
2018-03-30 01:03:17 +01:00
|
|
|
url = "https://salsa.debian.org/iso-codes-team/iso-codes/uploads/ef8de8bc12e0512d26ed73436a477871/${name}.tar.xz";
|
|
|
|
sha256 = "08i8hjy0qjlw9kd9i87jx967ihwh45l2xi55q1aa5265sind7byb";
|
2009-04-17 16:08:14 +01: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 16:08:14 +01: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; {
|
2010-12-14 10:21:38 +00:00
|
|
|
homepage = http://pkg-isocodes.alioth.debian.org/;
|
|
|
|
description = "Various ISO codes packaged as XML files";
|
2017-03-27 18:11:17 +01:00
|
|
|
maintainers = [ ];
|
2017-03-14 01:29:03 +00:00
|
|
|
platforms = platforms.all;
|
2010-12-14 10:21:38 +00:00
|
|
|
};
|
2009-04-17 16:08:14 +01:00
|
|
|
}
|