61 lines
1 KiB
Nix
61 lines
1 KiB
Nix
|
{ lib
|
||
|
, stdenv
|
||
|
, fetchFromGitHub
|
||
|
, cmake
|
||
|
, pkg-config
|
||
|
, libGL
|
||
|
, libxkbcommon
|
||
|
, hyprlang
|
||
|
, pam
|
||
|
, wayland
|
||
|
, wayland-protocols
|
||
|
, cairo
|
||
|
, pango
|
||
|
, libdrm
|
||
|
, mesa
|
||
|
, nix-update-script
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
pname = "hyprlock";
|
||
|
version = "0.1.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "hyprwm";
|
||
|
repo = "hyprlock";
|
||
|
rev = "v${finalAttrs.version}";
|
||
|
hash = "sha256-SX3VRcewkqeAIY6ptgfk9+C6KB9aCEUOacb2pKl3kO0=";
|
||
|
};
|
||
|
|
||
|
strictDeps = true;
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
cmake
|
||
|
pkg-config
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
cairo
|
||
|
hyprlang
|
||
|
libdrm
|
||
|
libGL
|
||
|
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" ];
|
||
|
};
|
||
|
})
|