push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{ fetchurl, libiconv }:
finalAttrs: {
version = "0.996";
src = fetchurl {
url = "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE";
name = "mecab-${finalAttrs.version}.tar.gz";
hash = "sha256-4HMyV4MTW3LmZhRceBu0j62lg9UiT7JJD7bBQDumnFk=";
};
buildInputs = [ libiconv ];
configureFlags = [
"--with-charset=utf8"
];
# mecab uses several features that have been removed in C++17.
# Force the language mode to C++14, so that it can compile with clang 16.
makeFlags = [ "CXXFLAGS=-std=c++14" ];
doCheck = true;
}

View File

@@ -0,0 +1,34 @@
{
lib,
stdenv,
fetchurl,
mecab-ipadic,
libiconv,
}:
let
mecab-base = import ./base.nix { inherit fetchurl libiconv; };
in
stdenv.mkDerivation (
finalAttrs:
(
(mecab-base finalAttrs)
// {
pname = "mecab";
postInstall = ''
mkdir -p $out/lib/mecab/dic
ln -s ${mecab-ipadic} $out/lib/mecab/dic/ipadic
'';
meta = with lib; {
description = "Japanese morphological analysis system";
homepage = "http://taku910.github.io/mecab";
license = licenses.bsd3;
platforms = platforms.unix;
mainProgram = "mecab";
maintainers = with maintainers; [ auntie ];
};
}
)
)

View File

@@ -0,0 +1,31 @@
{
lib,
stdenv,
fetchurl,
mecab-nodic,
buildPackages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mecab-ipadic";
version = "2.7.0-20070801";
src = fetchurl {
url = "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM";
name = "mecab-ipadic-${finalAttrs.version}.tar.gz";
hash = "sha256-ti9SfYgcUEV2uu2cbvZWFVRlixdc5q4AlqYDB+SeNSM=";
};
buildInputs = [ mecab-nodic ];
configureFlags = [
"--with-charset=utf8"
"--with-dicdir=${placeholder "out"}"
]
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"--with-mecab-config=${lib.getExe' buildPackages.mecab "mecab-config"}"
]
++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"--with-mecab-config=${lib.getExe' (lib.getDev mecab-nodic) "mecab-config"}"
];
})

View File

@@ -0,0 +1,18 @@
{
stdenv,
fetchurl,
libiconv,
}:
let
mecab-base = import ./base.nix { inherit fetchurl libiconv; };
in
stdenv.mkDerivation (
finalAttrs:
(
(mecab-base finalAttrs)
// {
pname = "mecab-nodic";
}
)
)