68d7e71424
GitOrigin-RevId: 945ec499041db73043f745fad3b2a3a01e826081
27 lines
734 B
Nix
27 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;
|
|
};
|
|
}
|