torque: substitute /bin/cp

This commit is contained in:
Tom Bereknyei 2020-04-26 17:32:45 -04:00
parent c351f2877c
commit bba6c109fe

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, openssl, flex, bison, pkgconfig, groff, libxml2, utillinux
, file, libtool, which, boost, autoreconfHook
, coreutils, file, libtool, which, boost, autoreconfHook
}:
stdenv.mkDerivation rec {
@ -32,6 +32,10 @@ stdenv.mkDerivation rec {
--replace "contrib/init.d contrib/systemd" ""
substituteInPlace src/cmds/Makefile.am \
--replace "/etc/" "$out/etc/"
substituteInPlace src/mom_rcp/pathnames.h \
--replace /bin/cp ${coreutils}/bin/cp
substituteInPlace src/resmom/requests.c \
--replace /bin/cp ${coreutils}/bin/cp
'';
preConfigure = ''