hyprlock/nix/default.nix
2024-02-20 14:37:12 +02:00

44 lines
652 B
Nix

{
lib,
stdenv,
cmake,
pkg-config,
cairo,
libGL,
libxkbcommon,
hyprlang,
pam,
pango,
wayland,
wayland-protocols,
version ? "git",
}:
stdenv.mkDerivation {
pname = "hyprlock";
inherit version;
src = ../.;
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
cairo
libGL
libxkbcommon
hyprlang
pam
pango
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";
};
}