1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 18:42:15 +00:00
nixpkgs/pkgs/development/libraries/iso-codes/default.nix
Yury G. Kudryashov 858d869d66 iso-codes-3.23
svn path=/nixpkgs/trunk/; revision=25117
2010-12-14 10:21:38 +00:00

24 lines
670 B
Nix

{stdenv, fetchurl, gettext, python}:
stdenv.mkDerivation rec {
name = "iso-codes-3.23";
src = fetchurl {
url = "ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes/${name}.tar.bz2";
sha256 = "0lf9phrdr10biihqswq1qmwk5cz954nwavgbnpm7a5r6vzfzkfbq";
};
patchPhase = ''
for i in `find . -name \*.py`
do
sed -i -e "s|#!/usr/bin/env python|#!${python}/bin/python|" $i
done
'';
buildInputs = [ gettext ];
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;
};
}