2017-03-14 01:29:03 +00:00
|
|
|
{stdenv, fetchurl, gettext, python3, xz}:
|
2009-04-17 15:08:14 +00:00
|
|
|
|
2010-12-14 10:21:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-03-14 01:29:03 +00:00
|
|
|
name = "iso-codes-3.74";
|
|
|
|
|
2009-04-17 15:08:14 +00:00
|
|
|
src = fetchurl {
|
2013-01-07 00:23:33 +00:00
|
|
|
url = "http://pkg-isocodes.alioth.debian.org/downloads/${name}.tar.xz";
|
2017-03-14 01:29:03 +00:00
|
|
|
sha256 = "1vkaxkcx8h8lbg3z3jjfjs1x1rz1l01j6ll46ysza2gym37g7x11";
|
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; {
|
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 17:11:17 +00:00
|
|
|
maintainers = [ ];
|
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
|
|
|
}
|