2016-05-27 22:01:16 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, curl, python, munge, perl, pam, openssl
|
2016-09-11 22:24:51 +01:00
|
|
|
, ncurses, mysql, gtk2, lua, hwloc, numactl
|
2016-05-27 22:01:16 +01:00
|
|
|
}:
|
2015-02-28 17:11:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "slurm-llnl-${version}";
|
2015-12-15 21:54:05 +00:00
|
|
|
version = "15-08-5-1";
|
2015-02-28 17:11:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-12-15 01:22:00 +00:00
|
|
|
url = "https://github.com/SchedMD/slurm/archive/slurm-${version}.tar.gz";
|
2015-12-15 21:54:05 +00:00
|
|
|
sha256 = "05si1cn7zivggan25brsqfdw0ilvrlnhj96pwv16dh6vfkggzjr1";
|
2015-02-28 17:11:13 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-05-28 00:29:42 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-05-27 22:01:16 +01:00
|
|
|
buildInputs = [
|
2016-09-11 22:24:51 +01:00
|
|
|
curl python munge perl pam openssl mysql.lib ncurses gtk2 lua hwloc numactl
|
2016-05-27 22:01:16 +01:00
|
|
|
];
|
2015-02-28 17:11:13 +00:00
|
|
|
|
2015-12-19 01:07:09 +00:00
|
|
|
configureFlags =
|
|
|
|
[ "--with-munge=${munge}"
|
2016-04-16 18:44:32 +01:00
|
|
|
"--with-ssl=${openssl.dev}"
|
2016-05-27 22:01:16 +01:00
|
|
|
"--sysconfdir=/etc/slurm"
|
2016-09-11 22:24:51 +01:00
|
|
|
] ++ stdenv.lib.optional (gtk2 == null) "--disable-gtktest";
|
2015-02-28 17:11:13 +00:00
|
|
|
|
|
|
|
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}"
|
|
|
|
'';
|
|
|
|
|
2016-05-27 22:01:16 +01:00
|
|
|
postInstall = ''
|
|
|
|
rm -f $out/lib/*.la $out/lib/slurm/*.la
|
|
|
|
'';
|
|
|
|
|
2015-02-28 17:11:13 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|