3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/iso-codes/default.nix
2022-01-08 10:14:56 +10:00

28 lines
734 B
Nix

{ lib, stdenv, fetchurl, gettext, python3 }:
stdenv.mkDerivation rec {
pname = "iso-codes";
version = "4.9.0";
src = fetchurl {
url = "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/v${version}/${pname}-v${version}.tar.gz";
sha256 = "02lq602ghws423w04jsyjr92p0nmrfp59n1m5hbbi1c6fhxryghc";
};
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 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;
};
}