2009-04-17 15:08:14 +00:00
|
|
|
{stdenv, fetchurl, gettext, python}:
|
|
|
|
|
2010-12-14 10:21:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "iso-codes-3.23";
|
2009-04-17 15:08:14 +00:00
|
|
|
src = fetchurl {
|
2010-12-14 10:21:38 +00:00
|
|
|
url = "ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes/${name}.tar.bz2";
|
|
|
|
sha256 = "0lf9phrdr10biihqswq1qmwk5cz954nwavgbnpm7a5r6vzfzkfbq";
|
2009-04-17 15:08:14 +00:00
|
|
|
};
|
|
|
|
patchPhase = ''
|
|
|
|
for i in `find . -name \*.py`
|
|
|
|
do
|
|
|
|
sed -i -e "s|#!/usr/bin/env python|#!${python}/bin/python|" $i
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
buildInputs = [ gettext ];
|
2010-12-14 10:21:38 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://pkg-isocodes.alioth.debian.org/;
|
|
|
|
description = "Various ISO codes packaged as XML files";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
2009-04-17 15:08:14 +00:00
|
|
|
}
|