mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 22:33:43 +00:00
a6bd31fa2c
this adds support for jpeg and webp wallpapers
remove cmake.patch as it is no longer needed
add dependencies as per 415262065f
68 lines
1.2 KiB
Nix
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" ];
|
|
};
|
|
})
|