termbg: add updateScript

This commit is contained in:
kyehn
2025-09-10 20:48:37 +08:00
parent 7a771a6c3e
commit 648795bd6b
+5
View File
@@ -2,6 +2,7 @@
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
@@ -23,6 +24,10 @@ rustPlatform.buildRustPackage rec {
ln -s ${./Cargo.lock} Cargo.lock
'';
passthru.updateScript = nix-update-script {
extraArgs = [ "--generate-lockfile" ];
};
meta = {
description = "Program for terminal background color detection";
homepage = "https://github.com/dalance/termbg";