mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
27 lines
662 B
Nix
27 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";
|
|
};
|
|
}
|