[flake] add en/fr build targets

parent 56eb89f5
Pipeline #7442 passed with stage
in 4 minutes and 7 seconds
......@@ -63,6 +63,21 @@
zh = "zh_core_news_trf";
};
mkSpacyDerivation = lang:
pkgs.stdenv.mkDerivation {
name = "spacy-${lang}";
# no src, see
# https://github.com/NixOS/nixpkgs/issues/23099
dontUnpack = true;
buildInputs = [
(pythonWithModel (langMap."${lang}"))
(server (langMap."${lang}"))
];
installPhase = ''
touch $out
'';
};
mkDevShell = lang: pkgs.mkShell {
buildInputs = [
(pythonWithModel (langMap."${lang}"))
......@@ -76,6 +91,9 @@
{
devShells.en = mkDevShell "en";
devShells.fr = mkDevShell "fr";
packages.en = mkSpacyDerivation "en";
packages.fr = mkSpacyDerivation "fr" ;
}
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment