{ lib, rustPlatform, fetchFromGitHub, versionCheckHook, nix-update-script, }: let version = "0.27.0"; in rustPlatform.buildRustPackage { pname = "tinty"; inherit version; src = fetchFromGitHub { owner = "tinted-theming"; repo = "tinty"; tag = "v${version}"; hash = "sha256-3gJRVKkC3B+DVfVmvlRjBdp6cD5x5wZMX3p4PWVIjno="; }; useFetchCargoVendor = true; cargoHash = "sha256-CJcPhUxClxk2SQAbAt1hzX7QbAhpXQCEc4xy1ADkAtk="; # Pretty much all tests require internet access doCheck = false; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; passthru.updateScript = nix-update-script { }; meta = { description = "Base16 and base24 color scheme manager"; homepage = "https://github.com/tinted-theming/tinty"; changelog = "https://github.com/tinted-theming/tinty/blob/refs/tags/v${version}/CHANGELOG.md"; license = with lib.licenses; [ mit ]; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ pluiedev ]; mainProgram = "tinty"; }; }