pdsh: Fix building on aarch64-darwin

The build is currently broken when compiling on ARM Darwin devices due
to an `ld: symbol(s) not found for architecture arm64` error. Running
autoreconfHook resolves this.
This commit is contained in:
Casey Ransom 2022-09-27 16:36:26 -04:00
parent f4d294eede
commit 749fb43200

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, perl, readline, rsh, ssh, slurm, slurmSupport ? false }:
{ lib, stdenv, fetchurl, autoreconfHook, perl, readline, rsh, ssh, slurm, slurmSupport ? false }:
stdenv.mkDerivation rec {
pname = "pdsh";
@ -12,6 +12,13 @@ stdenv.mkDerivation rec {
buildInputs = [ perl readline ssh ]
++ (lib.optional slurmSupport slurm);
nativeBuildInputs = [ autoreconfHook ];
# Do not use git to derive a version.
postPatch = ''
sed -i 's/m4_esyscmd(\[git describe.*/[${version}])/' configure.ac
'';
preConfigure = ''
configureFlagsArray=(
"--infodir=$out/share/info"