treewide: add update script

This commit is contained in:
Guanran Wang 2024-01-17 13:06:06 +08:00
parent 410bef4679
commit 36404f27d3
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchurl,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "metacubexd";
@ -21,6 +22,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
cp -r ./* $out
'';
passthru.updateScript = nix-update-script {};
meta = with lib; {
description = "Clash.Meta Dashboard, The Official One, XD";
homepage = "https://github.com/MetaCubeX/metacubexd";

View file

@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchFromGitHub,
nix-update-script,
}:
# TODO: use buildLua
# error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "buildLua"
@ -29,6 +30,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
'';
passthru.scriptName = "modernx.lua";
passthru.updateScript = nix-update-script {};
meta = with lib; {
description = "A modern OSC UI replacement for MPV that retains the functionality of the default OSC. (@zydezu's fork)";