Merge pull request #23877 from ndowens/isocodes
iso-codes: 3.56 -> 3.74
This commit is contained in:
commit
7967c4aacf
@ -1,24 +1,24 @@
|
|||||||
{stdenv, fetchurl, gettext, python, xz}:
|
{stdenv, fetchurl, gettext, python3, xz}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "iso-codes-3.56";
|
name = "iso-codes-3.74";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://pkg-isocodes.alioth.debian.org/downloads/${name}.tar.xz";
|
url = "http://pkg-isocodes.alioth.debian.org/downloads/${name}.tar.xz";
|
||||||
sha256 = "0vnfygd03jg21i7r238n450wy2hp354f3ank0v3k34zchbjydl2m";
|
sha256 = "1vkaxkcx8h8lbg3z3jjfjs1x1rz1l01j6ll46ysza2gym37g7x11";
|
||||||
};
|
};
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
for i in `find . -name \*.py`
|
for i in `find . -name \*.py`
|
||||||
do
|
do
|
||||||
sed -i -e "s|#!/usr/bin/env python|#!${python}/bin/python|" $i
|
sed -i -e "s|#!/usr/bin/env python|#!${python3}/bin/python|" $i
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
buildInputs = [ gettext ];
|
buildInputs = [ gettext python3 ];
|
||||||
nativeBuildInputs = [ xz ];
|
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://pkg-isocodes.alioth.debian.org/;
|
homepage = http://pkg-isocodes.alioth.debian.org/;
|
||||||
description = "Various ISO codes packaged as XML files";
|
description = "Various ISO codes packaged as XML files";
|
||||||
maintainers = [ stdenv.lib.maintainers.urkud ];
|
maintainers = [ maintainers.urkud ];
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user