3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/iso-codes/default.nix

25 lines
655 B
Nix
Raw Normal View History

2017-03-14 01:29:03 +00:00
{stdenv, fetchurl, gettext, python3, xz}:
stdenv.mkDerivation rec {
2017-03-14 01:29:03 +00:00
name = "iso-codes-3.74";
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";
};
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
done
'';
2017-03-14 01:29:03 +00:00
buildInputs = [ gettext python3 ];
2017-03-14 01:29:03 +00:00
meta = with stdenv.lib; {
homepage = http://pkg-isocodes.alioth.debian.org/;
description = "Various ISO codes packaged as XML files";
maintainers = [ ];
2017-03-14 01:29:03 +00:00
platforms = platforms.all;
};
}