okolors: modernize a bit

This commit is contained in:
SandaruKasa
2026-06-04 19:40:21 +03:00
parent 5157bd866a
commit 2a61b37f41
+11 -3
View File
@@ -2,6 +2,7 @@
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -9,21 +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 = with lib.maintainers; [
sandarukasa
];
changelog = "https://github.com/IanManske/Okolors/releases/tag/v${finalAttrs.version}";
mainProgram = "okolors";
};
})