From dc192d36fe11245296460bf5ca4410a8e2ba3588 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Fri, 17 Apr 2009 15:08:14 +0000 Subject: [PATCH] Added iso-codes package svn path=/nixpkgs/trunk/; revision=15117 --- pkgs/development/libraries/iso-codes/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pkgs/development/libraries/iso-codes/default.nix diff --git a/pkgs/development/libraries/iso-codes/default.nix b/pkgs/development/libraries/iso-codes/default.nix new file mode 100644 index 000000000000..836831594768 --- /dev/null +++ b/pkgs/development/libraries/iso-codes/default.nix @@ -0,0 +1,16 @@ +{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 ]; +}