nixpkgs/pkgs/by-name/ok/okolors/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
662 B
Nix
Raw Normal View History

2023-12-20 07:17:51 -07:00
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "okolors";
2024-07-03 22:01:25 -06:00
version = "0.8.0";
2023-12-20 07:17:51 -07:00
src = fetchFromGitHub {
owner = "Ivordir";
repo = "Okolors";
rev = "v${version}";
hash = "sha256-U7rLynXZGHCeZjaXoXx2IRDgUFv7zOKfb4BPgDROzBc=";
2023-12-20 07:17:51 -07:00
};
2024-07-03 22:01:25 -06:00
cargoHash = "sha256-xRCxpmIocvkg1ErYVqBLHb/jXV2eWeWHg4IO/QsnnF0=";
2023-12-20 07:17:51 -07:00
meta = with lib; {
description = "Generate a color palette from an image using k-means clustering in the Oklab color space";
homepage = "https://github.com/Ivordir/Okolors";
license = licenses.mit;
maintainers = with maintainers; [ laurent-f1z1 ];
mainProgram = "okolors";
};
}