Commit 648795bd authored by kyehn's avatar kyehn
Browse files

termbg: add updateScript

parent 7a771a6c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";