mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-12-22 21:39:47 +01:00
415262065f
* Add KDevelop files to the .gitignore * Add support for JPEG and WEBP background images Most of the code is copy-pasted from hyprpaper * Try doing nix stuff * Do not use brackets for short ifs
55 lines
754 B
Nix
55 lines
754 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
pkg-config,
|
|
cairo,
|
|
file,
|
|
libdrm,
|
|
libGL,
|
|
libjpeg,
|
|
libwebp,
|
|
libxkbcommon,
|
|
mesa,
|
|
hyprlang,
|
|
pam,
|
|
pango,
|
|
wayland,
|
|
wayland-protocols,
|
|
version ? "git",
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "hyprlock";
|
|
inherit version;
|
|
|
|
src = ../.;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
file
|
|
libdrm
|
|
libGL
|
|
libjpeg
|
|
libwebp
|
|
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";
|
|
};
|
|
}
|