1
0
Fork 0
mirror of https://github.com/hyprwm/hyprlock.git synced 2025-02-15 05:22:08 +01:00
hyprlock/nix/default.nix

72 lines
1 KiB
Nix
Raw Normal View History

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