firefox-extensions: fix update scripts
This commit is contained in:
@@ -1,34 +1,19 @@
|
||||
{ stdenv
|
||||
, callPackage
|
||||
, concatTextFile
|
||||
, fetchpatch
|
||||
, fetchurl
|
||||
, gnused
|
||||
, jq
|
||||
, lib
|
||||
, newScope
|
||||
, nix-update
|
||||
, nix-update-script
|
||||
, runCommandLocal
|
||||
, strip-nondeterminism
|
||||
, unzip
|
||||
, writers
|
||||
, writeScript
|
||||
, zip
|
||||
{
|
||||
callPackage,
|
||||
concatTextFile,
|
||||
fetchurl,
|
||||
jq,
|
||||
lib,
|
||||
newScope,
|
||||
nix-update-script,
|
||||
runCommandLocal,
|
||||
stdenv,
|
||||
strip-nondeterminism,
|
||||
unzip,
|
||||
writers,
|
||||
zip,
|
||||
}:
|
||||
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:
|
||||
let
|
||||
extid = addon.passthru.extid;
|
||||
@@ -122,7 +107,7 @@ let
|
||||
cp $src $out
|
||||
'';
|
||||
|
||||
passthru.updateScript = (nix-update-script.override { nix-update = nix-update'; }) { };
|
||||
passthru.updateScript = nix-update-script { };
|
||||
passthru.extid = extid;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user