mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
28 lines
747 B
Nix
28 lines
747 B
Nix
{stdenv, fetchurl, gettext, python3}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "iso-codes";
|
|
version = "4.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.bz2";
|
|
sha256 = "11n3sccwapfr7npxad8m3xmc7w8i11kk70ffbz25gj82bn8rylvb";
|
|
};
|
|
|
|
patchPhase = ''
|
|
for i in `find . -name \*.py`
|
|
do
|
|
sed -i -e "s|#!/usr/bin/env python|#!${python3}/bin/python|" $i
|
|
done
|
|
'';
|
|
|
|
nativeBuildInputs = [ gettext python3 ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://salsa.debian.org/iso-codes-team/iso-codes;
|
|
description = "Various ISO codes packaged as XML files";
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|