diff options
author | Laureηt <laurent@fainsin.bzh> | 2023-12-20 15:17:51 +0100 |
---|---|---|
committer | Laureηt <laurent@fainsin.bzh> | 2023-12-20 15:17:51 +0100 |
commit | 363cea29239ee412b17fd79ffa759e40d75f7ab5 (patch) | |
tree | 2e2a623e059e4abc6dc927d6a7b228aa45c66071 /pkgs/by-name/ok | |
parent | 7ed419e80f5702f35f614ef6ef310b0070d69f52 (diff) |
okolors: init at 0.5.1
Diffstat (limited to 'pkgs/by-name/ok')
-rw-r--r-- | pkgs/by-name/ok/okolors/package.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/by-name/ok/okolors/package.nix b/pkgs/by-name/ok/okolors/package.nix new file mode 100644 index 0000000000000..b6fd0750f7f20 --- /dev/null +++ b/pkgs/by-name/ok/okolors/package.nix @@ -0,0 +1,26 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "okolors"; + version = "0.5.1"; + + src = fetchFromGitHub { + owner = "Ivordir"; + repo = "Okolors"; + rev = "v${version}"; + sha256 = "sha256-Cwe6kyhsCU3wbuD0PTnj1JQOnMjH+sLmG5AiJImRGSU="; + }; + + cargoSha256 = "sha256-RVUrgz/YddT41N1omoPCW3Cjz7IWjc8sB7OwkCUDjM8="; + + 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"; + }; +} |