lightlocker: 1.8.0 -> 1.9.0

* meson!
* enabled UPower functionality

https://github.com/the-cavalry/light-locker/releases/tag/v1.9.0
This commit is contained in:
worldofpeace 2019-04-18 08:28:45 -04:00
parent 5dc1b85f3f
commit 26463d0736

View File

@ -1,43 +1,64 @@
{ stdenv { stdenv
, fetchFromGitHub , fetchFromGitHub
, which , meson
, xfce , ninja
, glib
, pkgconfig , pkgconfig
, gtk3
, glib
, intltool
, dbus-glib
, libX11 , libX11
, libXScrnSaver , libXScrnSaver
, libXxf86misc , libXxf86vm
, gtk3 , libXext
, dbus-glib
, systemd , systemd
, pantheon
, wrapGAppsHook , wrapGAppsHook
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${basename}-${version}"; pname = "light-locker";
basename = "light-locker"; version = "1.9.0";
version = "1.8.0";
outputs = [ "out" "man" ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "the-cavalry"; owner = "the-cavalry";
repo = basename; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1zsafc10bmliknf12h3mgy7f73lvgph0q0wkaqp42iagmw11yaj8"; sha256 = "1z5lcd02gqax65qc14hj5khifg7gr53zy3s5i6apba50lbdlfk46";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [
buildInputs = [ which xfce.xfce4-dev-tools glib systemd intltool
libX11 libXScrnSaver libXxf86misc gtk3 dbus-glib wrapGAppsHook ]; meson
ninja
pkgconfig
];
preConfigure = '' buildInputs = [
./autogen.sh dbus-glib
''; glib
gtk3
libX11
libXScrnSaver
libXext
libXxf86vm
systemd
wrapGAppsHook
];
configureFlags = [ "--with-xf86gamma-ext" "--with-mit-ext" mesonFlags = [
"--with-dpms-ext" "--with-systemd" "-Dmit-ext=true"
# ConsoleKit and UPower were dropped in favor "-Ddpms-ext=true"
# of systemd replacements "-Dxf86gamma-ext=true"
"--without-console-kit" "--without-upower" ]; "-Dsystemd=true"
"-Dupower=true"
"-Dlate-locking=true"
"-Dlock-on-suspend=true"
"-Dlock-on-lid=true"
"-Dgsettings=true"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/the-cavalry/light-locker; homepage = https://github.com/the-cavalry/light-locker;
@ -52,7 +73,7 @@ stdenv.mkDerivation rec {
ConsoleKit/UPower or logind/systemd. ConsoleKit/UPower or logind/systemd.
''; '';
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ obadz ]; maintainers = with maintainers; [ obadz ] ++ pantheon.maintainers;
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }