summary refs log tree commit diff
path: root/pkgs/servers/computing/torque
diff options
context:
space:
mode:
authorLuca Bruno <luca.bruno@immobiliare.it>2014-09-05 10:18:33 +0200
committerLuca Bruno <luca.bruno@immobiliare.it>2014-09-09 18:24:46 +0200
commitac724e7bbc3b15ff97d81991a1e28db47bdcbc93 (patch)
treef73407b8bcb686d1325a08176350fd01ee9b7585 /pkgs/servers/computing/torque
parente84b0c94f0e36d7ffc32da62c91ad44f47d72270 (diff)
downloadnixpkgs-ac724e7bbc3b15ff97d81991a1e28db47bdcbc93.tar
nixpkgs-ac724e7bbc3b15ff97d81991a1e28db47bdcbc93.tar.gz
nixpkgs-ac724e7bbc3b15ff97d81991a1e28db47bdcbc93.tar.bz2
nixpkgs-ac724e7bbc3b15ff97d81991a1e28db47bdcbc93.tar.lz
nixpkgs-ac724e7bbc3b15ff97d81991a1e28db47bdcbc93.tar.xz
nixpkgs-ac724e7bbc3b15ff97d81991a1e28db47bdcbc93.tar.zst
nixpkgs-ac724e7bbc3b15ff97d81991a1e28db47bdcbc93.zip
Added TORQUE package and nixos module
Resource management system for submitting and controlling
jobs on supercomputers, clusters, and grids

http://www.adaptivecomputing.com/products/open-source/torque
Diffstat (limited to 'pkgs/servers/computing/torque')
-rw-r--r--pkgs/servers/computing/torque/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/servers/computing/torque/default.nix b/pkgs/servers/computing/torque/default.nix
new file mode 100644
index 00000000000..d95e929ff82
--- /dev/null
+++ b/pkgs/servers/computing/torque/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchurl, openssl, flex, bison, pkgconfig, groff, libxml2, utillinux }:
+
+stdenv.mkDerivation rec {
+  name = "torque-4.2.8";
+
+  src = fetchurl {
+    name = "${name}.tar.gz";
+    url = "http://www.adaptivecomputing.com/index.php?wpfb_dl=2730";
+    sha256 = "1sjpvndzm9ccdmfwdf9887ppmapawfsh5qdkzr92kadg5jxp796j";
+  };
+
+  buildInputs = [ openssl flex bison pkgconfig groff libxml2 utillinux ];
+
+  enableParallelBuilding = true;
+
+  preConfigure = ''
+   for s in fifo cray_t3e dec_cluster msic_cluster sgi_origin umn_cluster; do
+     substituteInPlace src/scheduler.cc/samples/$s/Makefile.in \
+       --replace "schedprivdir = " "schedprivdir = $out/"
+   done
+
+   for f in $(find ./ -name Makefile.in); do
+     echo patching $f...
+     sed -i $f -e '/PBS_MKDIRS/d'
+   done
+  '';
+
+  postInstall = ''
+    mv $out/sbin/* $out/bin/
+    rmdir $out/sbin
+    cp -v buildutils/pbs_mkdirs $out/bin/
+    cp -v torque.setup $out/bin/
+    chmod +x $out/bin/pbs_mkdirs $out/bin/torque.setup
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://www.adaptivecomputing.com/products/open-source/torque;
+    description = "Resource management system for submitting and controlling jobs on supercomputers, clusters, and grids";
+    platforms = platforms.linux;
+  };
+}