uassets: fix updateScript

This commit is contained in:
Colin 2024-05-27 07:16:50 +00:00
parent a2d385708f
commit abb65e55c6

View File

@ -1,7 +1,7 @@
{ stdenv
, lib
, fetchFromGitHub
, unstableGitUpdater
, nix-update-script
}:
stdenv.mkDerivation {
pname = "uassets";
@ -9,8 +9,8 @@ stdenv.mkDerivation {
src = fetchFromGitHub {
owner = "uBlockOrigin";
repo = "uAssets";
rev = "c1534355786340767ce31bb89aa0cb40903685f4";
hash = "sha256-Euaop8Y4tUNWlpc+H+VJG65KcMkX6EOtbjPGyheCkPE=";
rev = "deb1f47b49461e1c2f307931fc6a02c76137168b";
hash = "sha256-IhzNUSkGnGuY9YBq9rN7l2rwxHzRMQTp3aPJ6xF46lU=";
};
dontBuild = true;
@ -25,7 +25,10 @@ stdenv.mkDerivation {
cp thirdparties/urlhaus-filter/*.txt $out/share/filters
'';
passthru.updateScript = unstableGitUpdater { };
passthru.updateScript = nix-update-script {
# XXX(2024/05/26): why does `--version unstable` not work, but `--version branch` *does*??
extraArgs = [ "--version" "branch" ];
};
meta = with lib; {
homepage = "https://github.com/uBlockOrigin/uAssets";