Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, fetchpatch, python3, libkkc }: 2 3stdenv.mkDerivation rec { 4 pname = "libkkc-data"; 5 version = "0.2.7"; 6 7 src = fetchurl { 8 url = "${meta.homepage}/releases/download/v${libkkc.version}/${pname}-${version}.tar.xz"; 9 sha256 = "16avb50jasq2f1n9xyziky39dhlnlad0991pisk3s11hl1aqfrwy"; 10 }; 11 12 patches = [ 13 (fetchpatch { 14 name = "build-python3.patch"; 15 url = "https://github.com/ueno/libkkc/commit/ba1c1bd3eb86d887fc3689c3142732658071b5f7.patch"; 16 relative = "data/templates/libkkc-data"; 17 hash = "sha256-q4zUclJtDQ1E5v2PW00zRZz6GXllLUcp2h3tugufrRU="; 18 }) 19 ]; 20 21 nativeBuildInputs = [ python3.pkgs.marisa ]; 22 23 strictDeps = true; 24 25 meta = with lib; { 26 description = "Language model data package for libkkc"; 27 homepage = "https://github.com/ueno/libkkc"; 28 license = licenses.gpl3Plus; 29 maintainers = with maintainers; [ vanzef ]; 30 platforms = platforms.linux; 31 }; 32}