diff options
author | Roman Joost <roman@bromeco.de> | 2021-06-18 18:30:13 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 10:30:13 +0200 |
commit | ce0e3eae665cad3e7265177ab9d1f4b7989a40d4 (patch) | |
tree | 78d7c4dc5dd072a2fb3e17e4188a7b40460f0952 | |
parent | 36776df0cfc50542607d361cdbee94d5ba8ae2a3 (diff) | |
download | nixpkgs-ce0e3eae665cad3e7265177ab9d1f4b7989a40d4.tar nixpkgs-ce0e3eae665cad3e7265177ab9d1f4b7989a40d4.tar.gz nixpkgs-ce0e3eae665cad3e7265177ab9d1f4b7989a40d4.tar.bz2 nixpkgs-ce0e3eae665cad3e7265177ab9d1f4b7989a40d4.tar.lz nixpkgs-ce0e3eae665cad3e7265177ab9d1f4b7989a40d4.tar.xz nixpkgs-ce0e3eae665cad3e7265177ab9d1f4b7989a40d4.tar.zst nixpkgs-ce0e3eae665cad3e7265177ab9d1f4b7989a40d4.zip |
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.
-rw-r--r-- | pkgs/misc/screensavers/xlockmore/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/misc/screensavers/xlockmore/default.nix b/pkgs/misc/screensavers/xlockmore/default.nix index 17b22ce0723..600528a7944 100644 --- a/pkgs/misc/screensavers/xlockmore/default.nix +++ b/pkgs/misc/screensavers/xlockmore/default.nix @@ -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. |