forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wlock: init at 0-unstable-2024-09-13 (NixOS#347893)
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitea, | ||
libxcrypt, | ||
pkg-config, | ||
wayland, | ||
wayland-protocols, | ||
libxkbcommon, | ||
wayland-scanner, | ||
}: | ||
stdenv.mkDerivation rec { | ||
pname = "wlock"; | ||
version = "0-unstable-2024-09-13"; | ||
|
||
src = fetchFromGitea { | ||
domain = "codeberg.org"; | ||
owner = "sewn"; | ||
repo = "wlock"; | ||
rev = "be975445fa0da7252f8e13b610c518dd472652d0"; | ||
hash = "sha256-Xt7Q51RhFG+UXYukxfORIhc4Df86nxtpDhAhaSmI38A="; | ||
}; | ||
|
||
postPatch = '' | ||
substituteInPlace Makefile --replace-fail 'chmod 4755' 'chmod 755' | ||
''; | ||
|
||
buildInputs = [ | ||
libxcrypt | ||
wayland | ||
wayland-protocols | ||
libxkbcommon | ||
]; | ||
|
||
strictDeps = true; | ||
|
||
makeFlags = [ | ||
"PREFIX=$(out)" | ||
("WAYLAND_SCANNER=" + lib.getExe wayland-scanner) | ||
]; | ||
|
||
nativeBuildInputs = [ | ||
pkg-config | ||
wayland-scanner | ||
]; | ||
|
||
meta = { | ||
description = "Sessionlocker for Wayland compositors that support the ext-session-lock-v1 protocol"; | ||
license = lib.licenses.gpl3; | ||
homepage = "https://codeberg.org/sewn/wlock"; | ||
platforms = lib.platforms.linux; | ||
maintainers = with lib.maintainers; [ fliegendewurst ]; | ||
}; | ||
} |