Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
lightlocker: 1.8.0 -> 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
worldofpeace committed Apr 18, 2019
1 parent 5dc1b85 commit 26463d0
Showing 1 changed file with 44 additions and 23 deletions.
67 changes: 44 additions & 23 deletions pkgs/misc/screensavers/light-locker/default.nix
@@ -1,43 +1,64 @@
{ stdenv
, fetchFromGitHub
, which
, xfce
, glib
, meson
, ninja
, pkgconfig
, libX11
, libXScrnSaver
, libXxf86misc
, gtk3
, glib
, intltool
, dbus-glib
, libX11
, libXScrnSaver
, libXxf86vm
, libXext
, systemd
, pantheon
, wrapGAppsHook
}:

stdenv.mkDerivation rec {
name = "${basename}-${version}";
basename = "light-locker";
version = "1.8.0";
pname = "light-locker";
version = "1.9.0";

outputs = [ "out" "man" ];

src = fetchFromGitHub {
owner = "the-cavalry";
repo = basename;
repo = pname;
rev = "v${version}";
sha256 = "1zsafc10bmliknf12h3mgy7f73lvgph0q0wkaqp42iagmw11yaj8";
sha256 = "1z5lcd02gqax65qc14hj5khifg7gr53zy3s5i6apba50lbdlfk46";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ which xfce.xfce4-dev-tools glib systemd
libX11 libXScrnSaver libXxf86misc gtk3 dbus-glib wrapGAppsHook ];
nativeBuildInputs = [
intltool
meson
ninja
pkgconfig
];

preConfigure = ''
./autogen.sh
'';
buildInputs = [
dbus-glib
glib
gtk3
libX11
libXScrnSaver
libXext
libXxf86vm
systemd
wrapGAppsHook
];

configureFlags = [ "--with-xf86gamma-ext" "--with-mit-ext"
"--with-dpms-ext" "--with-systemd"
# ConsoleKit and UPower were dropped in favor
# of systemd replacements
"--without-console-kit" "--without-upower" ];
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"
];

meta = with stdenv.lib; {
homepage = https://github.com/the-cavalry/light-locker;
Expand All @@ -52,7 +73,7 @@ stdenv.mkDerivation rec {
ConsoleKit/UPower or logind/systemd.
'';
license = licenses.gpl2;
maintainers = with maintainers; [ obadz ];
maintainers = with maintainers; [ obadz ] ++ pantheon.maintainers;
platforms = platforms.linux;
};
}

0 comments on commit 26463d0

Please sign in to comment.