Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spacy-server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
spacy-server
Commits
def897d3
Verified
Commit
def897d3
authored
Mar 14, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flake] add en/fr build targets
parent
56eb89f5
Pipeline
#7442
passed with stage
in 4 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
flake.nix
flake.nix
+18
-0
No files found.
flake.nix
View file @
def897d3
...
@@ -63,6 +63,21 @@
...
@@ -63,6 +63,21 @@
zh
=
"zh_core_news_trf"
;
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
{
mkDevShell
=
lang
:
pkgs
.
mkShell
{
buildInputs
=
[
buildInputs
=
[
(
pythonWithModel
(
langMap
.
"
${
lang
}
"
))
(
pythonWithModel
(
langMap
.
"
${
lang
}
"
))
...
@@ -76,6 +91,9 @@
...
@@ -76,6 +91,9 @@
{
{
devShells
.
en
=
mkDevShell
"en"
;
devShells
.
en
=
mkDevShell
"en"
;
devShells
.
fr
=
mkDevShell
"fr"
;
devShells
.
fr
=
mkDevShell
"fr"
;
packages
.
en
=
mkSpacyDerivation
"en"
;
packages
.
fr
=
mkSpacyDerivation
"fr"
;
}
}
);
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment