nixpkgs/pkgs/by-name/ti/tinty/package.nix
2025-03-27 05:39:17 +00:00

43 lines
1.0 KiB
Nix

{
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";
};
}