nixpkgs/pkgs/by-name/wa/waylock/package.nix

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

53 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2024-01-15 00:25:15 +00:00
, fetchFromGitea
, libxkbcommon
, pam
, pkg-config
, scdoc
, wayland
, wayland-protocols
2023-10-29 23:42:39 +00:00
, zig_0_11
}:
stdenv.mkDerivation (finalAttrs: {
pname = "waylock";
2024-04-17 00:53:33 +00:00
version = "1.0.0";
2024-01-15 00:25:15 +00:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "ifreund";
repo = "waylock";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
2024-04-17 00:53:33 +00:00
hash = "sha256-Z5YNaR+jocJ4hS7NT8oAlrMnqNfD8KRzOyyqdVGDSl0=";
};
nativeBuildInputs = [
pkg-config
scdoc
wayland
2023-10-29 23:42:39 +00:00
zig_0_11.hook
];
buildInputs = [
wayland-protocols
libxkbcommon
pam
];
zigBuildFlags = [ "-Dman-pages" ];
passthru.updateScript = ./update.nu;
meta = {
homepage = "https://codeberg.org/ifreund/waylock";
changelog = "https://codeberg.org/ifreund/waylock/releases/tag/v${finalAttrs.version}";
description = "A small screenlocker for Wayland compositors";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ adamcstephens jordanisaacs ];
2023-09-02 19:23:23 +00:00
mainProgram = "waylock";
platforms = lib.platforms.linux;
};
})