nixpkgs/pkgs/development/libraries/iso-codes/default.nix

25 lines
697 B
Nix
Raw Normal View History

2013-01-07 00:23:33 +00:00
{stdenv, fetchurl, gettext, python, xz}:
stdenv.mkDerivation rec {
2013-01-07 00:23:33 +00:00
name = "iso-codes-3.40";
src = fetchurl {
2013-01-07 00:23:33 +00:00
url = "http://pkg-isocodes.alioth.debian.org/downloads/${name}.tar.xz";
sha256 = "0iph96n8vh4khidxg2zzhmcqnphfzg50agn0lv9cjhmnx0i712pr";
};
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 00:23:33 +00:00
nativeBuildInputs = [ xz ];
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;
};
}