git.iko.soy/typeable/nixpkgs
on master help sign in
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

commitb6193dbac7961a412c106932f6af5a07e875fc1b authorAdrien Devresse <adrien.devresse@epfl.ch> dateFri 27 May 2016, 23:01 (11 years ago) parentd7749f2
1 file changed+12−3
pkgs/servers/computing/slurm/default.nix+12−3
pkgs/servers/computing/slurm/default.nix+12−3
@@ -1,5 +1,6 @@
1−{ stdenv, fetchurl, pkgconfig, curl, python, munge, perl, pam, openssl,
2− ncurses, mysql, gtk }:
1+{ stdenv, fetchurl, pkgconfig, curl, python, munge, perl, pam, openssl
2+, ncurses, mysql, gtk, lua, hwloc, numactl
3+}:
34
45stdenv.mkDerivation rec {
56 name = "slurm-llnl-${version}";
@@ -10,11 +11,15 @@ stdenv.mkDerivation rec {
1011 sha256 = "05si1cn7zivggan25brsqfdw0ilvrlnhj96pwv16dh6vfkggzjr1";
1112 };
1213
13− buildInputs = [ pkgconfig curl python munge perl pam openssl mysql.lib ncurses gtk ];
14+ buildInputs = [
15+ pkgconfig curl python munge perl pam openssl mysql.lib ncurses gtk lua
16+ hwloc numactl
17+ ];
1418
1519 configureFlags =
1620 [ "--with-munge=${munge}"
1721 "--with-ssl=${openssl.dev}"
22+ "--sysconfdir=/etc/slurm"
1823 ] ++ stdenv.lib.optional (gtk == null) "--disable-gtktest";
1924
2025 preConfigure = ''
@@ -22,6 +27,10 @@ stdenv.mkDerivation rec {
2227 substituteInPlace ./doc/man/man2html.py --replace "/usr/bin/env python" "${python.interpreter}"
2328 '';
2429
30+ postInstall = ''
31+ rm -f $out/lib/*.la $out/lib/slurm/*.la
32+ '';
33+
2534 meta = with stdenv.lib; {
2635 homepage = http://www.schedmd.com/;
2736 description = "Simple Linux Utility for Resource Management";