2013-01-07 01:23:33 +01:00
|
|
|
{stdenv, fetchurl, gettext, python, xz}:
|
2009-04-17 17:08:14 +02:00
|
|
|
|
2010-12-14 11:21:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-18 16:08:54 +01:00
|
|
|
name = "iso-codes-3.49";
|
2009-04-17 17:08:14 +02:00
|
|
|
src = fetchurl {
|
2013-01-07 01:23:33 +01:00
|
|
|
url = "http://pkg-isocodes.alioth.debian.org/downloads/${name}.tar.xz";
|
2013-12-18 16:08:54 +01:00
|
|
|
sha256 = "1ryk5i467p7xxrbrqynb35ci046yj9k9b4d3hfxzass962lz9q04";
|
2009-04-17 17:08:14 +02:00
|
|
|
};
|
|
|
|
patchPhase = ''
|
|
|
|
for i in `find . -name \*.py`
|
|
|
|
do
|
|
|
|
sed -i -e "s|#!/usr/bin/env python|#!${python}/bin/python|" $i
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
buildInputs = [ gettext ];
|
2013-01-07 01:23:33 +01:00
|
|
|
nativeBuildInputs = [ xz ];
|
2010-12-14 11:21:38 +01: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 17:08:14 +02:00
|
|
|
}
|