oklch-color-picker: init at 2.2.1 (#419020)

This commit is contained in:
Wolfgang Walther 2025-07-03 10:53:44 +00:00 committed by GitHub
commit b6621f0fd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 58 additions and 0 deletions

View File

@ -26460,6 +26460,12 @@
githubId = 335406;
name = "David Asabina";
};
videl = {
email = "thibaut.smith@mailbox.org";
github = "videl";
githubId = 123554;
name = "Thibaut Smith";
};
vidister = {
email = "v@vidister.de";
github = "vidister";

View File

@ -0,0 +1,52 @@
{
lib,
nix-update-script,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
autoPatchelfHook,
wayland,
libxkbcommon,
libGL,
stdenv,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "oklch-color-picker";
version = "2.2.1";
src = fetchFromGitHub {
owner = "eero-lehtinen";
repo = "oklch-color-picker";
tag = "${finalAttrs.version}";
hash = "sha256-tPYxcZghGR1YZl1bwoDDIBmbTVGuksCpfgLYwG+k4Ws=";
};
cargoHash = "sha256-tdIkvBYKfcbCYXhDbIwXNNbNb4X32uBwDh3mAyqt/IM=";
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
runtimeDependencies = [
wayland
libxkbcommon
libGL
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Color picker for Oklch";
longDescription = ''
A standalone color picker application using the Oklch
colorspace (based on Oklab)
'';
homepage = "https://github.com/eero-lehtinen/oklch-color-picker";
changelog = "https://github.com/eero-lehtinen/oklch-color-picker/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ videl ];
broken = stdenv.hostPlatform.isDarwin;
};
})