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

authored by Wolfgang Walther and committed by GitHub b6621f0f 2b162f77

+58
+6
maintainers/maintainer-list.nix
··· 26460 26460 githubId = 335406; 26461 26461 name = "David Asabina"; 26462 26462 }; 26463 + videl = { 26464 + email = "thibaut.smith@mailbox.org"; 26465 + github = "videl"; 26466 + githubId = 123554; 26467 + name = "Thibaut Smith"; 26468 + }; 26463 26469 vidister = { 26464 26470 email = "v@vidister.de"; 26465 26471 github = "vidister";
+52
pkgs/by-name/ok/oklch-color-picker/package.nix
··· 1 + { 2 + lib, 3 + nix-update-script, 4 + rustPlatform, 5 + fetchFromGitHub, 6 + versionCheckHook, 7 + autoPatchelfHook, 8 + wayland, 9 + libxkbcommon, 10 + libGL, 11 + stdenv, 12 + }: 13 + 14 + rustPlatform.buildRustPackage (finalAttrs: { 15 + pname = "oklch-color-picker"; 16 + version = "2.2.1"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "eero-lehtinen"; 20 + repo = "oklch-color-picker"; 21 + tag = "${finalAttrs.version}"; 22 + hash = "sha256-tPYxcZghGR1YZl1bwoDDIBmbTVGuksCpfgLYwG+k4Ws="; 23 + }; 24 + 25 + cargoHash = "sha256-tdIkvBYKfcbCYXhDbIwXNNbNb4X32uBwDh3mAyqt/IM="; 26 + 27 + nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ]; 28 + 29 + runtimeDependencies = [ 30 + wayland 31 + libxkbcommon 32 + libGL 33 + ]; 34 + 35 + nativeInstallCheckInputs = [ versionCheckHook ]; 36 + versionCheckProgramArg = "--version"; 37 + doInstallCheck = true; 38 + passthru.updateScript = nix-update-script { }; 39 + 40 + meta = { 41 + description = "Color picker for Oklch"; 42 + longDescription = '' 43 + A standalone color picker application using the Oklch 44 + colorspace (based on Oklab) 45 + ''; 46 + homepage = "https://github.com/eero-lehtinen/oklch-color-picker"; 47 + changelog = "https://github.com/eero-lehtinen/oklch-color-picker/releases/tag/${finalAttrs.version}"; 48 + license = lib.licenses.mit; 49 + maintainers = with lib.maintainers; [ videl ]; 50 + broken = stdenv.hostPlatform.isDarwin; 51 + }; 52 + })