hyprlock/nix/default.nix

60 lines
820 B
Nix
Raw Normal View History

2024-02-19 00:50:56 +01:00
{
lib,
stdenv,
cmake,
pkg-config,
cairo,
file,
2024-02-21 23:55:33 +01:00
libdrm,
2024-02-19 00:50:56 +01:00
libGL,
libjpeg,
libwebp,
2024-02-19 00:50:56 +01:00
libxkbcommon,
2024-02-22 00:08:25 +01:00
mesa,
2024-02-19 00:50:56 +01:00
hyprlang,
hyprutils,
2024-02-19 00:50:56 +01:00
pam,
pango,
wayland,
wayland-protocols,
wayland-scanner,
2024-02-19 00:50:56 +01:00
version ? "git",
}:
stdenv.mkDerivation {
pname = "hyprlock";
inherit version;
2024-03-21 18:25:55 +01:00
2024-02-19 00:50:56 +01:00
src = ../.;
nativeBuildInputs = [
cmake
pkg-config
wayland-scanner
2024-02-19 00:50:56 +01:00
];
buildInputs = [
cairo
file
2024-02-21 23:55:33 +01:00
libdrm
2024-02-19 00:50:56 +01:00
libGL
libjpeg
libwebp
2024-02-19 00:50:56 +01:00
libxkbcommon
2024-02-22 00:08:25 +01:00
mesa
2024-02-19 00:50:56 +01:00
hyprlang
hyprutils
2024-02-19 00:50:56 +01:00
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";
};
}