26 src = fetchFromGitHub {
27 owner = "adaptivecomputing";
29 # branch 6.1.3h2, as they aren't pushing tags
30 # https://github.com/adaptivecomputing/torque/issues/467
31 rev = "458883319157cfc5c509046d09f9eb8e68e8d398";
32 sha256 = "1b56bc5j9wg87kcywzmhf7234byyrwax9v1pqsr9xmv2x7saakrr";
56 enableParallelBuilding = true;
58 # added to fix build with gcc7
59 env.NIX_CFLAGS_COMPILE = "-Wno-error -fpermissive";
62 substituteInPlace Makefile.am \
63 --replace-fail "contrib/init.d contrib/systemd" ""
64 substituteInPlace src/cmds/Makefile.am \
65 --replace-fail "/etc/" "$out/etc/"
66 substituteInPlace src/mom_rcp/pathnames.h \
67 --replace-fail /bin/cp ${coreutils}/bin/cp
68 substituteInPlace src/resmom/requests.c \
69 --replace-fail /bin/cp ${coreutils}/bin/cp
73 # fix broken libxml2 detection
74 sed -i '/xmlLib\=/c\xmlLib=xml2' ./configure
76 for s in fifo cray_t3e dec_cluster msic_cluster sgi_origin umn_cluster; do
77 substituteInPlace src/scheduler.cc/samples/$s/Makefile.in \
78 --replace-fail "schedprivdir = " "schedprivdir = $out/"
81 for f in $(find ./ -name Makefile.in); do
83 sed -i $f -e '/PBS_MKDIRS/d' -e '/chmod u+s/d'
86 patchShebangs buildutils
90 install -Dm755 torque.setup buildutils/pbs_mkdirs -t $out/bin/
94 homepage = "http://www.adaptivecomputing.com/products/open-source/torque";
95 description = "Resource management system for submitting and controlling jobs on supercomputers, clusters, and grids";
96 platforms = platforms.linux;
97 license = "TORQUEv1.1";