okolors: adopt and touch up a bit (#528075)

This commit is contained in:
Yohann Boniface
2026-06-05 06:56:45 +00:00
committed by GitHub

View File

@@ -2,6 +2,7 @@
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -9,19 +10,28 @@ rustPlatform.buildRustPackage (finalAttrs: {
version = "0.9.0";
src = fetchFromGitHub {
owner = "Ivordir";
owner = "IanManske";
repo = "Okolors";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-RSkZUkwCn9uvvT2dIqM2Q4+mRqjUegVuXCms5DBugbk=";
};
cargoHash = "sha256-ceFyFbNmC7PoleTejymQw9Ii9rxx2qJmFifNAQjLVUM=";
passthru = {
updateScript = nix-update-script { };
};
__structuredAttrs = true;
meta = {
description = "Generate a color palette from an image using k-means clustering in the Oklab color space";
homepage = "https://github.com/Ivordir/Okolors";
homepage = "https://github.com/IanManske/Okolors";
license = lib.licenses.mit;
maintainers = [ ];
maintainers = with lib.maintainers; [
sandarukasa
];
changelog = "https://github.com/IanManske/Okolors/releases/tag/v${finalAttrs.version}";
mainProgram = "okolors";
};
})