From bba6c109fe963464c2260483ffdaea76f33fa414 Mon Sep 17 00:00:00 2001 From: Tom Bereknyei Date: Sun, 26 Apr 2020 17:32:45 -0400 Subject: [PATCH] torque: substitute /bin/cp --- pkgs/servers/computing/torque/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/computing/torque/default.nix b/pkgs/servers/computing/torque/default.nix index 37c8d32ab6a1..0941ca969223 100644 --- a/pkgs/servers/computing/torque/default.nix +++ b/pkgs/servers/computing/torque/default.nix @@ -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 = ''