2015-12-19 02:07:09 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, curl, python, munge, perl, pam, openssl,
|
|
|
|
ncurses, mysql, gtk }:
|
2015-02-28 18:11:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "slurm-llnl-${version}";
|
2015-12-15 22:54:05 +01:00
|
|
|
version = "15-08-5-1";
|
2015-02-28 18:11:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-12-15 02:22:00 +01:00
|
|
|
url = "https://github.com/SchedMD/slurm/archive/slurm-${version}.tar.gz";
|
2015-12-15 22:54:05 +01:00
|
|
|
sha256 = "05si1cn7zivggan25brsqfdw0ilvrlnhj96pwv16dh6vfkggzjr1";
|
2015-02-28 18:11:13 +01:00
|
|
|
};
|
|
|
|
|
2015-12-19 02:07:09 +01:00
|
|
|
buildInputs = [ pkgconfig curl python munge perl pam openssl mysql.lib ncurses gtk ];
|
2015-02-28 18:11:13 +01:00
|
|
|
|
2015-12-19 02:07:09 +01:00
|
|
|
configureFlags =
|
|
|
|
[ "--with-munge=${munge}"
|
|
|
|
"--with-ssl=${openssl}"
|
|
|
|
] ++ stdenv.lib.optional (gtk == null) "--disable-gtktest";
|
2015-02-28 18:11:13 +01: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}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|