hyprlock/nix/default.nix
2024-12-19 19:41:20 +01:00

67 lines
938 B
Nix

{
lib,
stdenv,
cmake,
pkg-config,
cairo,
file,
libdrm,
libGL,
libjpeg,
libsodium,
libwebp,
libxkbcommon,
mesa,
hyprgraphics,
hyprlang,
hyprutils,
pam,
pango,
sdbus-cpp,
systemdLibs,
wayland,
wayland-protocols,
wayland-scanner,
version ? "git",
}:
stdenv.mkDerivation {
pname = "hyprlock";
inherit version;
src = ../.;
nativeBuildInputs = [
cmake
pkg-config
wayland-scanner
];
buildInputs = [
cairo
file
libsodium
libdrm
libGL
libjpeg
libwebp
libxkbcommon
mesa
hyprgraphics
hyprlang
hyprutils
pam
pango
sdbus-cpp
systemdLibs
wayland
wayland-protocols
];
meta = {
homepage = "https://github.com/hyprwm/hyprlock";
description = "A gpu-accelerated screen lock for Hyprland";
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
mainProgram = "hyprlock";
};
}