Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 44 lines 750 B view raw
1{ stdenv 2, lib 3, fetchurl 4, python3 5}: 6 7stdenv.mkDerivation rec { 8 pname = "itstool"; 9 version = "2.0.7"; 10 11 src = fetchurl { 12 url = "http://files.itstool.org/${pname}/${pname}-${version}.tar.bz2"; 13 hash = "sha256-a5p80poSu5VZj1dQ6HY87niDahogf4W3TYsydbJ+h8o="; 14 }; 15 16 strictDeps = true; 17 18 nativeBuildInputs = [ 19 python3 20 python3.pkgs.wrapPython 21 ]; 22 23 buildInputs = [ 24 python3 25 python3.pkgs.libxml2 26 ]; 27 28 pythonPath = [ 29 python3.pkgs.libxml2 30 ]; 31 32 postFixup = '' 33 wrapPythonPrograms 34 ''; 35 36 meta = { 37 homepage = "https://itstool.org/"; 38 description = "XML to PO and back again"; 39 mainProgram = "itstool"; 40 license = lib.licenses.gpl3Plus; 41 platforms = lib.platforms.all; 42 maintainers = [ ]; 43 }; 44}