Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 29 lines 693 B view raw
1{ stdenv, lib, fetchurl, python3 }: 2 3stdenv.mkDerivation rec { 4 pname = "itstool"; 5 version = "2.0.6"; 6 7 src = fetchurl { 8 url = "http://files.itstool.org/${pname}/${pname}-${version}.tar.bz2"; 9 sha256 = "1acjgf8zlyk7qckdk19iqaca4jcmywd7vxjbcs1mm6kaf8icqcv2"; 10 }; 11 12 strictDeps = true; 13 14 nativeBuildInputs = [ python3 python3.pkgs.wrapPython ]; 15 buildInputs = [ python3 python3.pkgs.libxml2 ]; 16 pythonPath = [ python3.pkgs.libxml2 ]; 17 18 postFixup = '' 19 wrapPythonPrograms 20 ''; 21 22 meta = { 23 homepage = "https://itstool.org/"; 24 description = "XML to PO and back again"; 25 license = lib.licenses.gpl3Plus; 26 platforms = lib.platforms.all; 27 maintainers = [ ]; 28 }; 29}