nixpkgs/pkgs/data/misc/libkkc-data/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
944 B
Nix
Raw Permalink Normal View History

2022-11-25 22:08:03 +01:00
{ lib, stdenv, fetchurl, fetchpatch, python3, libkkc }:
2018-01-30 12:29:42 +01:00
stdenv.mkDerivation rec {
pname = "libkkc-data";
version = "0.2.7";
src = fetchurl {
url = "${meta.homepage}/releases/download/v${libkkc.version}/${pname}-${version}.tar.xz";
2018-01-30 12:29:42 +01:00
sha256 = "16avb50jasq2f1n9xyziky39dhlnlad0991pisk3s11hl1aqfrwy";
};
2022-11-25 22:08:03 +01:00
patches = [
(fetchpatch {
name = "build-python3.patch";
url = "https://github.com/ueno/libkkc/commit/ba1c1bd3eb86d887fc3689c3142732658071b5f7.patch";
relative = "data/templates/libkkc-data";
hash = "sha256-q4zUclJtDQ1E5v2PW00zRZz6GXllLUcp2h3tugufrRU=";
})
];
nativeBuildInputs = [ python3.pkgs.marisa ];
2021-03-25 12:40:55 +01:00
strictDeps = true;
2018-01-30 12:29:42 +01:00
meta = with lib; {
2018-01-30 12:29:42 +01:00
description = "Language model data package for libkkc";
homepage = "https://github.com/ueno/libkkc";
2018-01-30 12:29:42 +01:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vanzef ];
platforms = platforms.linux;
};
}