nixpkgs/pkgs/by-name/li/lightlocker/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

94 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
meson,
ninja,
pkg-config,
gtk3,
glib,
intltool,
dbus-glib,
libX11,
libXScrnSaver,
libXxf86vm,
libXext,
systemd,
pantheon,
wrapGAppsHook3,
}:
stdenv.mkDerivation rec {
pname = "light-locker";
version = "1.9.0";
outputs = [
"out"
"man"
];
src = fetchFromGitHub {
owner = "the-cavalry";
repo = pname;
rev = "v${version}";
sha256 = "1z5lcd02gqax65qc14hj5khifg7gr53zy3s5i6apba50lbdlfk46";
};
nativeBuildInputs = [
intltool
meson
ninja
pkg-config
wrapGAppsHook3
];
buildInputs = [
dbus-glib
glib
gtk3
libX11
libXScrnSaver
libXext
libXxf86vm
systemd
];
mesonFlags = [
"-Dmit-ext=true"
"-Ddpms-ext=true"
"-Dxf86gamma-ext=true"
"-Dsystemd=true"
"-Dupower=true"
"-Dlate-locking=true"
"-Dlock-on-suspend=true"
"-Dlock-on-lid=true"
"-Dgsettings=true"
];
postInstall = ''
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
'';
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
homepage = "https://github.com/the-cavalry/light-locker";
description = "Simple session-locker for LightDM";
longDescription = ''
A simple locker (forked from gnome-screensaver) that aims to
have simple, sane, secure defaults and be well integrated with
the desktop while not carrying any desktop-specific
dependencies.
It relies on LightDM for locking and unlocking your session via
ConsoleKit/UPower or logind/systemd.
'';
license = licenses.gpl2Plus;
maintainers = with maintainers; [ obadz ] ++ teams.pantheon.members;
platforms = platforms.linux;
};
}