summaryrefslogtreecommitdiff
path: root/pkgs/firefoxAddonUpdateScript/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/firefoxAddonUpdateScript/package.nix')
-rw-r--r--pkgs/firefoxAddonUpdateScript/package.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/firefoxAddonUpdateScript/package.nix b/pkgs/firefoxAddonUpdateScript/package.nix
new file mode 100644
index 0000000..9590caa
--- /dev/null
+++ b/pkgs/firefoxAddonUpdateScript/package.nix
@@ -0,0 +1,32 @@
+{
+ lib,
+ common-updater-scripts,
+ curl,
+ jq,
+ writeShellApplication,
+}:
+
+let
+ script = writeShellApplication {
+ name = "firefox-addon-update-script";
+
+ runtimeInputs = [
+ common-updater-scripts
+ curl
+ jq
+ ];
+
+ text = lib.fileContents ./script.sh;
+ };
+in
+
+{
+ addonRef,
+ attrPath,
+}:
+
+[
+ (lib.getExe script)
+ attrPath
+ addonRef
+]