firefox-extensions: fix update scripts

This commit is contained in:
2024-10-02 15:55:15 +00:00
parent 606c56036a
commit 976946541e

View File

@@ -1,34 +1,19 @@
{ stdenv {
, callPackage callPackage,
, concatTextFile concatTextFile,
, fetchpatch fetchurl,
, fetchurl jq,
, gnused lib,
, jq newScope,
, lib nix-update-script,
, newScope runCommandLocal,
, nix-update stdenv,
, nix-update-script strip-nondeterminism,
, runCommandLocal unzip,
, strip-nondeterminism writers,
, unzip zip,
, writers
, writeScript
, zip
}: }:
let let
nix-update' = nix-update.overrideAttrs (upstream: {
patches = (upstream.patches or []) ++ [
(fetchpatch {
# u-block releases betas, and worse, deletes them later.
# i don't know how to ignore them through the nix-update-script API,
# but this patch handles that.
name = "github: Use API to properly tag prereleases";
url = "https://github.com/Mic92/nix-update/pull/246.patch";
hash = "sha256-cwajliS1YMEcS2MtrKtpNn64rWHjwNDLI49LKhnlQYM=";
})
];
});
wrapAddon = addon: args: wrapAddon = addon: args:
let let
extid = addon.passthru.extid; extid = addon.passthru.extid;
@@ -122,7 +107,7 @@ let
cp $src $out cp $src $out
''; '';
passthru.updateScript = (nix-update-script.override { nix-update = nix-update'; }) { }; passthru.updateScript = nix-update-script { };
passthru.extid = extid; passthru.extid = extid;
}; };