slurm-llnl: improvements

- add support for numa and hwloc
- add support for lua scripting module
- make slurm compatible with system configuration by default, in case of  Nix used
  as a side package manager (tested on redhat)
- strip the libtool generated files

Closes #15673
This commit is contained in:
Adrien Devresse 2016-05-27 23:01:16 +02:00 committed by Joachim Fasting
parent d7749f27f3
commit b6193dbac7
No known key found for this signature in database
GPG Key ID: 4330820E1E04DCF4

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl, pkgconfig, curl, python, munge, perl, pam, openssl, { stdenv, fetchurl, pkgconfig, curl, python, munge, perl, pam, openssl
ncurses, mysql, gtk }: , ncurses, mysql, gtk, lua, hwloc, numactl
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "slurm-llnl-${version}"; name = "slurm-llnl-${version}";
@ -10,11 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "05si1cn7zivggan25brsqfdw0ilvrlnhj96pwv16dh6vfkggzjr1"; sha256 = "05si1cn7zivggan25brsqfdw0ilvrlnhj96pwv16dh6vfkggzjr1";
}; };
buildInputs = [ pkgconfig curl python munge perl pam openssl mysql.lib ncurses gtk ]; buildInputs = [
pkgconfig curl python munge perl pam openssl mysql.lib ncurses gtk lua
hwloc numactl
];
configureFlags = configureFlags =
[ "--with-munge=${munge}" [ "--with-munge=${munge}"
"--with-ssl=${openssl.dev}" "--with-ssl=${openssl.dev}"
"--sysconfdir=/etc/slurm"
] ++ stdenv.lib.optional (gtk == null) "--disable-gtktest"; ] ++ stdenv.lib.optional (gtk == null) "--disable-gtktest";
preConfigure = '' preConfigure = ''
@ -22,6 +27,10 @@ stdenv.mkDerivation rec {
substituteInPlace ./doc/man/man2html.py --replace "/usr/bin/env python" "${python.interpreter}" substituteInPlace ./doc/man/man2html.py --replace "/usr/bin/env python" "${python.interpreter}"
''; '';
postInstall = ''
rm -f $out/lib/*.la $out/lib/slurm/*.la
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://www.schedmd.com/; homepage = http://www.schedmd.com/;
description = "Simple Linux Utility for Resource Management"; description = "Simple Linux Utility for Resource Management";