nixpkgs/pkgs/servers/computing/slurm/default.nix
Adrien Devresse b6193dbac7
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
2016-05-28 02:08:41 +02:00

42 lines
1.2 KiB
Nix

{ stdenv, fetchurl, pkgconfig, curl, python, munge, perl, pam, openssl
, ncurses, mysql, gtk, lua, hwloc, numactl
}:
stdenv.mkDerivation rec {
name = "slurm-llnl-${version}";
version = "15-08-5-1";
src = fetchurl {
url = "https://github.com/SchedMD/slurm/archive/slurm-${version}.tar.gz";
sha256 = "05si1cn7zivggan25brsqfdw0ilvrlnhj96pwv16dh6vfkggzjr1";
};
buildInputs = [
pkgconfig curl python munge perl pam openssl mysql.lib ncurses gtk lua
hwloc numactl
];
configureFlags =
[ "--with-munge=${munge}"
"--with-ssl=${openssl.dev}"
"--sysconfdir=/etc/slurm"
] ++ stdenv.lib.optional (gtk == null) "--disable-gtktest";
preConfigure = ''
substituteInPlace ./doc/html/shtml2html.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; {
homepage = http://www.schedmd.com/;
description = "Simple Linux Utility for Resource Management";
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = [ maintainers.jagajaga ];
};
}