depot/pkgs/by-name/ok/okolors/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

26 lines
662 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "okolors";
version = "0.8.0";
src = fetchFromGitHub {
owner = "Ivordir";
repo = "Okolors";
rev = "v${version}";
hash = "sha256-U7rLynXZGHCeZjaXoXx2IRDgUFv7zOKfb4BPgDROzBc=";
};
cargoHash = "sha256-xRCxpmIocvkg1ErYVqBLHb/jXV2eWeWHg4IO/QsnnF0=";
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";
};
}