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

25 lines
697 B
Nix
Raw Normal View History

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