nixpkgs/pkgs/by-name/hy/hyprlock/package.nix
John Titor a6bd31fa2c
hyprlock: 0.3.0 -> 0.3.0-unstable-2024-04-24
this adds support for jpeg and webp wallpapers
remove cmake.patch as it is no longer needed
add dependencies as per 415262065f
2024-05-06 15:29:47 +05:30

68 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, libGL
, libxkbcommon
, hyprlang
, pam
, wayland
, wayland-protocols
, cairo
, file
, libjpeg
, libwebp
, pango
, libdrm
, mesa
, nix-update-script
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hyprlock";
version = "0.3.0-unstable-2024-04-24";
src = fetchFromGitHub {
owner = "hyprwm";
repo = "hyprlock";
# FIXME: Change to a stable release once available
rev = "415262065fff0a04b229cd00165f346a86a0a73a";
hash = "sha256-jla5Wo0Qt3NEnD0OjNj85BGw0pR4Zlz5uy8AqHH7tuE=";
};
strictDeps = true;
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
cairo
file
hyprlang
libdrm
libGL
libjpeg
libwebp
libxkbcommon
mesa
pam
pango
wayland
wayland-protocols
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Hyprland's GPU-accelerated screen locking utility";
homepage = "https://github.com/hyprwm/hyprlock";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ eclairevoyant ];
mainProgram = "hyprlock";
platforms = [ "aarch64-linux" "x86_64-linux" ];
};
})