nixpkgs-suyu/pkgs/applications/misc/waylock/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
893 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, libxkbcommon
, pam
, pkg-config
, scdoc
, wayland
, wayland-protocols
2023-10-30 00:42:39 +01:00
, zig_0_11
}:
stdenv.mkDerivation (finalAttrs: {
pname = "waylock";
2023-10-30 00:42:39 +01:00
version = "0.6.3";
src = fetchFromGitHub {
owner = "ifreund";
repo = "waylock";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
2023-10-30 00:42:39 +01:00
hash = "sha256-Q1FlahawsnJ77gP6QVs9AR058rhMU92iueRPudPf+sE=";
};
nativeBuildInputs = [
pkg-config
scdoc
wayland
2023-10-30 00:42:39 +01:00
zig_0_11.hook
];
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 ];
2023-09-02 21:23:23 +02:00
mainProgram = "waylock";
platforms = lib.platforms.linux;
};
})