nixos/slurm: fix X11 with spank module

* Fix path in module for slurm to find plugstack.conf
* Fix configure flags so that slurm can be compiled
  without internal X11 support (required for spank-x11).
This commit is contained in:
Markus Kowalewski
2019-11-05 22:00:23 +01:00
parent 9e733df81f
commit 8219a3b713
2 changed files with 10 additions and 5 deletions

View File

@@ -48,7 +48,8 @@ stdenv.mkDerivation rec {
"--with-zlib=${zlib}"
"--sysconfdir=/etc/slurm"
] ++ (optional (gtk2 == null) "--disable-gtktest")
++ (optional enableX11 "--with-libssh2=${libssh2.dev}");
++ (optional enableX11 "--with-libssh2=${libssh2.dev}")
++ (optional (!enableX11) "--disable-x11");
preConfigure = ''