mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
5c68e0e7e1
Also, a cosmetic refactor: - Reorder parameter listing - Use rec-less, overlay-style overridable recursive attributes (in effect since NixOS#119942); - Remove nested with (according to https://nix.dev/recipes/best-practices#with-scopes)
48 lines
857 B
Nix
48 lines
857 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libxkbcommon
|
|
, pam
|
|
, pkg-config
|
|
, scdoc
|
|
, wayland
|
|
, wayland-protocols
|
|
, zigHook
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "waylock";
|
|
version = "0.6.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ifreund";
|
|
repo = "waylock";
|
|
rev = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-jl4jSDWvJB6OfBbVXfVQ7gv/aDkN6bBy+/yK+AQDQL0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
scdoc
|
|
wayland
|
|
zigHook
|
|
];
|
|
|
|
buildInputs = [
|
|
wayland-protocols
|
|
libxkbcommon
|
|
pam
|
|
];
|
|
|
|
zigBuildFlags = [ "-Dman-pages" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ifreund/waylock";
|
|
description = "A small screenlocker for Wayland compositors";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ jordanisaacs ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|