mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
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:
parent
36776df0cf
commit
ce0e3eae66
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue