about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-05-20 07:40:49 +0200
committerSoispha <soispha@vhack.eu>2023-05-20 07:40:49 +0200
commit725047d31611a8ce60f86707d1d8cbd3db1a0b35 (patch)
tree647beb67e668261d376e914eb80eb8c079317ce1
parentFix(hm/pkgs/scr/con2pdf): Don't try batch mode when using the Flatbed (diff)
downloadnixos-config-725047d31611a8ce60f86707d1d8cbd3db1a0b35.tar.gz
nixos-config-725047d31611a8ce60f86707d1d8cbd3db1a0b35.zip
Build(fupdate): Add generate_extensions to the inputs to avoid gc
-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