nixpkgs/pkgs/servers/computing/slurm/default.nix
2015-03-02 22:10:58 +03:00

34 lines
976 B
Nix

{ stdenv, fetchurl, python, munge, perl, pam, openssl, mysql }:
#TODO: add sview support based on gtk2
stdenv.mkDerivation rec {
name = "slurm-llnl-${version}";
version = "14.11.4";
src = fetchurl {
url = "http://www.schedmd.com/download/latest/slurm-${version}.tar.bz2";
sha256 = "1w454j92j2fnh7xmg63275qcszq8ywiq51sm2rpyf175jrxv6ina";
};
buildInputs = [ python munge perl pam openssl mysql ];
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 ];
};
}