xlockmore: add preConfigure to compile with DPMS support (#127051)

The build of xlockmore produced only the minimum set of features. DPMS
support, Xinerama etc was disabled because the changes in the postPatch
step were never applied by re-running autoconf.

Furthermore, DPMS was not supported because it couldn't find the
`dpms.h` header file in order to compile the support for DPMS features.

This patch uses the `autoreconfHook` in which we run
`autoconf` to apply the changes of `configure.ac` to the `configure`
script. The patch also uses the `libXext.dev` `buildInput` in order to
allow access to the right header files.
This commit is contained in:
Roman Joost 2021-06-18 18:30:13 +10:00 committed by GitHub
parent 36776df0cf
commit ce0e3eae66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, pam ? null, libX11, libXext, libXinerama
, libXdmcp, libXt }:
, libXdmcp, libXt, autoreconfHook }:
stdenv.mkDerivation rec {
name = "xlockmore-5.66";
@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
};
# Optionally, it can use GTK.
buildInputs = [ pam libX11 libXext libXinerama libXdmcp libXt ];
buildInputs = [ pam libX11 libXext.dev libXinerama libXdmcp libXt ];
nativeBuildInputs = [ autoreconfHook ];
# Don't try to install `xlock' setuid. Password authentication works
# fine via PAM without super user privileges.