about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake.nix11
-rw-r--r--flake/default.nix2
-rwxr-xr-xhome-manager/config/firefox/scripts/update_extensions4
3 files changed, 15 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index b837347c..99ff50d1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -108,6 +108,15 @@
         flake-utils.follows = "flake-utils";
       };
     };
+    generate_firefox_extensions = {
+      url = "git+https://codeberg.org/soispha/generate_firefox_extension.git";
+      inputs = {
+        nixpkgs.follows = "nixpkgs";
+        crane.follows = "crane";
+        flake-utils.follows = "flake-utils";
+        rust-overlay.follows = "rust-overlay";
+      };
+    };
     shell_library = {
       url = "git+https://codeberg.org/soispha/shell_library.git";
       inputs = {
@@ -181,6 +190,7 @@
     # my binaries
     video_pause,
     strip_js_comments,
+    generate_firefox_extensions,
     shell_library,
     river_init_lesser,
     yambar_memory,
@@ -220,6 +230,7 @@
         
         video_pause
         strip_js_comments
+        generate_firefox_extensions
         shell_library
         river_init_lesser
         yambar_memory
diff --git a/flake/default.nix b/flake/default.nix
index 8d0d83d4..834d0b0c 100644
--- a/flake/default.nix
+++ b/flake/default.nix
@@ -19,6 +19,7 @@
   # my binaries
   video_pause,
   strip_js_comments,
+  generate_firefox_extensions,
   shell_library,
   river_init_lesser,
   yambar_memory,
@@ -126,6 +127,7 @@ in {
         ltex-ls
         yamllint
         cocogitto
+        generate_firefox_extensions.packages."${system}".default # needed for the firefox extension update script
       ];
     };
   };
diff --git a/home-manager/config/firefox/scripts/update_extensions b/home-manager/config/firefox/scripts/update_extensions
index 2c532387..05f47aad 100755
--- a/home-manager/config/firefox/scripts/update_extensions
+++ b/home-manager/config/firefox/scripts/update_extensions
@@ -14,8 +14,8 @@ cat << EOF > $tmp
     libredirect
 EOF
 
-
-nix shell git+https://codeberg.org/ene/generate_moz_extension.git -c generate_extensions $(cat $tmp) > "$(dirname $0)"/../config/extensions/extensions.json
+# The bin is provided in the devshell. The cat execution should be unquoted
+generate_extensions $(cat "$tmp") > "$(dirname $0)"/../config/extensions/extensions.json