hyprlock/nix/default.nix

66 lines
911 B
Nix
Raw Permalink 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,
hyprgraphics,
2024-02-19 00:50:56 +01:00
hyprlang,
hyprutils,
2024-02-19 00:50:56 +01:00
pam,
pango,
sdbus-cpp,
systemdLibs,
2024-02-19 00:50:56 +01:00
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
hyprgraphics
2024-02-19 00:50:56 +01:00
hyprlang
hyprutils
2024-02-19 00:50:56 +01:00
pam
pango
sdbus-cpp
systemdLibs
2024-02-19 00:50:56 +01:00
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";
};
}