{ lib, rustPlatform, fetchFromGitHub, versionCheckHook, nix-update-script, }: let version = "0.26.0"; in rustPlatform.buildRustPackage { pname = "tinty"; inherit version; src = fetchFromGitHub { owner = "tinted-theming"; repo = "tinty"; tag = "v${version}"; hash = "sha256-tQW8z0Gtxh0cnMwm9oN3PyOQW7YFVXG2LDkljudMDp0="; }; useFetchCargoVendor = true; cargoHash = "sha256-2S2M5AoppPoHIgEGGsCxrztTGXVAZIBax4VRQMH+5CE="; # 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"; }; }