Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 27 lines 747 B view raw
1{stdenv, fetchurl, gettext, python3}: 2 3stdenv.mkDerivation rec { 4 pname = "iso-codes"; 5 version = "4.4"; 6 7 src = fetchurl { 8 url = "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.bz2"; 9 sha256 = "02x0wcz783ammkdrmrh31wsmww481xbkbz70vf766ivbnn5sfxn6"; 10 }; 11 12 patchPhase = '' 13 for i in `find . -name \*.py` 14 do 15 sed -i -e "s|#!/usr/bin/env python|#!${python3}/bin/python|" $i 16 done 17 ''; 18 19 nativeBuildInputs = [ gettext python3 ]; 20 21 meta = with stdenv.lib; { 22 homepage = https://salsa.debian.org/iso-codes-team/iso-codes; 23 description = "Various ISO codes packaged as XML files"; 24 license = licenses.lgpl21; 25 platforms = platforms.all; 26 }; 27}