oklch-color-picker: init at 2.2.1 (#419020)
This commit is contained in:
commit
b6621f0fd0
@ -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";
|
||||
|
||||
52
pkgs/by-name/ok/oklch-color-picker/package.nix
Normal file
52
pkgs/by-name/ok/oklch-color-picker/package.nix
Normal 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;
|
||||
};
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user