2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, ninja
|
|
|
|
, cairo
|
|
|
|
, fribidi
|
2023-11-16 04:20:00 +00:00
|
|
|
, libGL
|
2023-03-24 00:07:29 +00:00
|
|
|
, libdatrie
|
|
|
|
, libjpeg
|
|
|
|
, libselinux
|
|
|
|
, libsepol
|
|
|
|
, libthai
|
2023-11-16 04:20:00 +00:00
|
|
|
, libxkbcommon
|
2023-03-24 00:07:29 +00:00
|
|
|
, pango
|
|
|
|
, pcre
|
|
|
|
, util-linux
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, wayland-scanner
|
|
|
|
, libXdmcp
|
|
|
|
, debug ? false
|
|
|
|
}:
|
2023-05-24 13:37:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-03-24 00:07:29 +00:00
|
|
|
pname = "hyprpicker" + lib.optionalString debug "-debug";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.3.0";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hyprwm";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "hyprpicker";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-BYQF1zM6bJ44ag9FJ0aTSkhOTY9U7uRdp3SmRCs5fJM=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cmakeBuildType = if debug then "Debug" else "Release";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
fribidi
|
2023-11-16 04:20:00 +00:00
|
|
|
libGL
|
2023-03-24 00:07:29 +00:00
|
|
|
libdatrie
|
|
|
|
libjpeg
|
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libthai
|
2023-11-16 04:20:00 +00:00
|
|
|
libxkbcommon
|
2023-03-24 00:07:29 +00:00
|
|
|
pango
|
|
|
|
pcre
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
wayland-scanner
|
|
|
|
libXdmcp
|
|
|
|
util-linux
|
|
|
|
];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/licenses
|
|
|
|
install -Dm644 $src/LICENSE -t $out/share/licenses/hyprpicker
|
2023-03-24 00:07:29 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Wlroots-compatible Wayland color picker that does not suck";
|
2023-03-24 00:07:29 +00:00
|
|
|
homepage = "https://github.com/hyprwm/hyprpicker";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fufexan ];
|
|
|
|
platforms = wayland.meta.platforms;
|
2023-11-16 04:20:00 +00:00
|
|
|
mainProgram = "hyprpicker";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
})
|