hyprlock/nix/default.nix
Mihai Fufezan f237dead6c
Nix: fix install error
Fixes #214
2024-03-21 19:25:55 +02:00

54 lines
765 B
Nix

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