mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
dc192d36fe
svn path=/nixpkgs/trunk/; revision=15117
17 lines
454 B
Nix
17 lines
454 B
Nix
{stdenv, fetchurl, gettext, python}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "iso-codes-3.5";
|
|
src = fetchurl {
|
|
url = ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes/iso-codes-3.5.tar.bz2;
|
|
sha256 = "2aac5f37a9ebb5af9c5d186ba1428f05ad779c7760e279cd8b86897a5d434807";
|
|
};
|
|
patchPhase = ''
|
|
for i in `find . -name \*.py`
|
|
do
|
|
sed -i -e "s|#!/usr/bin/env python|#!${python}/bin/python|" $i
|
|
done
|
|
'';
|
|
buildInputs = [ gettext ];
|
|
}
|