nixpkgs/pkgs/servers/computing/slurm/default.nix

34 lines
983 B
Nix
Raw Normal View History

2015-02-28 17:11:13 +00:00
{ stdenv, fetchurl, python, munge, perl, pam, openssl, mysql }:
#TODO: add sview support based on gtk2
stdenv.mkDerivation rec {
name = "slurm-llnl-${version}";
2015-12-15 01:22:00 +00:00
version = "14-11-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";
sha256 = "0vn2jkj83zgc4j656vm24lihapg3w3sfnzpsmynlk4r0v9cy2vcw";
2015-02-28 17:11:13 +00:00
};
buildInputs = [ python munge perl pam openssl mysql.lib ];
2015-02-28 17:11:13 +00: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 ];
};
}