about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/generate_moz_extension/examples
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-03-23 14:59:36 +0100
committerSoispha <soispha@vhack.eu>2024-03-23 14:59:36 +0100
commit8816ccb0b24c40086d9caebccb97ea8d73102630 (patch)
treeee3e08e1ad1244eb1468b238fa2d69cd8a5d643a /sys/nixpkgs/pkgs/generate_moz_extension/examples
parentfix(pkgs/scripts/update-sys): Add new `systemd-run` dependency (diff)
downloadnixos-config-8816ccb0b24c40086d9caebccb97ea8d73102630.zip
feat(pkgs/generate_moz_extensions): Vendor it
This project was hosted as a separate git repository. It is now
vendored, like the other projects directly associated with the
configuration.
Diffstat (limited to 'sys/nixpkgs/pkgs/generate_moz_extension/examples')
-rwxr-xr-xsys/nixpkgs/pkgs/generate_moz_extension/examples/generate_extensions.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/nixpkgs/pkgs/generate_moz_extension/examples/generate_extensions.sh b/sys/nixpkgs/pkgs/generate_moz_extension/examples/generate_extensions.sh
new file mode 100755
index 00000000..96802992
--- /dev/null
+++ b/sys/nixpkgs/pkgs/generate_moz_extension/examples/generate_extensions.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+tmp=$(mktemp)
+cat <<EOF | awk '!/^\s*#/' >"$tmp"
+    darkreader:navbar
+    keepassxc-browser:navbar
+    vhack-libredirect:navbar
+    # torproject-snowflake:navbar
+    tridactyl-vim:menupanel
+    ublock-origin:menupanel
+EOF
+
+# The cat execution should be unquoted;
+# shellcheck disable=SC2046
+cargo run -- $(cat "$tmp")
+
+rm "$tmp"