uassets: fix updateScript
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, unstableGitUpdater
|
, nix-update-script
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "uassets";
|
pname = "uassets";
|
||||||
@@ -9,8 +9,8 @@ stdenv.mkDerivation {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "uBlockOrigin";
|
owner = "uBlockOrigin";
|
||||||
repo = "uAssets";
|
repo = "uAssets";
|
||||||
rev = "c1534355786340767ce31bb89aa0cb40903685f4";
|
rev = "deb1f47b49461e1c2f307931fc6a02c76137168b";
|
||||||
hash = "sha256-Euaop8Y4tUNWlpc+H+VJG65KcMkX6EOtbjPGyheCkPE=";
|
hash = "sha256-IhzNUSkGnGuY9YBq9rN7l2rwxHzRMQTp3aPJ6xF46lU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
@@ -25,7 +25,10 @@ stdenv.mkDerivation {
|
|||||||
cp thirdparties/urlhaus-filter/*.txt $out/share/filters
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/uBlockOrigin/uAssets";
|
homepage = "https://github.com/uBlockOrigin/uAssets";
|
||||||
|
Reference in New Issue
Block a user