summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-12-22 14:29:36 +0100
committerLinnnus <[email protected]>2023-12-29 17:44:31 +0100
commita48edf6ca1c9434cd256e15d25d5e585aa5357a9 (patch)
treead0a3734cffc52aac7035bf2f13b80f9e3f2e53a
parent3e3d74ee978f7985b3065b44ceb07600c4940edb (diff)
pkgs/yalafi-shell: Add yalafi-extract command
-rw-r--r--pkgs/yalafi-shell/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/yalafi-shell/default.nix b/pkgs/yalafi-shell/default.nix
index b8092ba..907538e 100644
--- a/pkgs/yalafi-shell/default.nix
+++ b/pkgs/yalafi-shell/default.nix
@@ -2,6 +2,7 @@
python3,
fetchFromGitHub,
writeShellScriptBin,
+ symlinkJoin,
languagetool,
}: let
yalafi = python3.pkgs.buildPythonPackage rec {
@@ -23,6 +24,14 @@
python3-with-yalafi = python3.withPackages (ps: [yalafi]);
in
- writeShellScriptBin "yalafi-shell" ''
- ${python3-with-yalafi.interpreter} -m yalafi.shell --lt-command "${languagetool}"/bin/languagetool-commandline "$@"
- ''
+ symlinkJoin {
+ name = "yalafi-utils";
+ paths = [
+ (writeShellScriptBin "yalafi-shell" ''
+ ${python3-with-yalafi.interpreter} -m yalafi.shell --lt-command "${languagetool}"/bin/languagetool-commandline "$@"
+ '')
+ (writeShellScriptBin "yalafi-extract" ''
+ ${python3-with-yalafi.interpreter} -m yalafi "$@"
+ '')
+ ];
+ }