nixpkgs/pkgs/by-name/ti/tinty/package.nix
2024-12-09 18:42:30 -05:00

42 lines
1022 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
let
version = "0.23.0";
in
rustPlatform.buildRustPackage {
pname = "tinty";
inherit version;
src = fetchFromGitHub {
owner = "tinted-theming";
repo = "tinty";
tag = "v${version}";
hash = "sha256-5KrXvE+RLkypqKg01Os09XGxrqv0fCMkeSD//E5WrZc=";
};
cargoHash = "sha256-qTHlSP9WN39KgU7Q/4/iS1H2XOikXiCAiZ/NSAFS9mM=";
# 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";
};
}