2015-02-28 18:11:13 +01:00
|
|
|
{ stdenv, fetchurl, python, munge, perl, pam, openssl, mysql }:
|
|
|
|
|
|
|
|
#TODO: add sview support based on gtk2
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "slurm-llnl-${version}";
|
2015-03-23 19:52:30 +01:00
|
|
|
version = "14.11.5";
|
2015-02-28 18:11:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.schedmd.com/download/latest/slurm-${version}.tar.bz2";
|
2015-03-23 19:52:30 +01:00
|
|
|
sha256 = "0xx1q9ximsyyipl0xbj8r7ajsz4xrxik8xmhcb1z9nv0aza1rff2";
|
2015-02-28 18:11:13 +01:00
|
|
|
};
|
|
|
|
|
2015-04-02 01:39:50 +02:00
|
|
|
buildInputs = [ python munge perl pam openssl mysql.lib ];
|
2015-02-28 18:11:13 +01:00
|
|
|
|
|
|
|
configureFlags = ''
|
|
|
|
--with-munge=${munge}
|
|
|
|
--with-ssl=${openssl}
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|