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:
parent
f4d294eede
commit
749fb43200
|
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pdsh";
|
pname = "pdsh";
|
||||||
|
@ -12,6 +12,13 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ perl readline ssh ]
|
buildInputs = [ perl readline ssh ]
|
||||||
++ (lib.optional slurmSupport slurm);
|
++ (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 = ''
|
preConfigure = ''
|
||||||
configureFlagsArray=(
|
configureFlagsArray=(
|
||||||
"--infodir=$out/share/info"
|
"--infodir=$out/share/info"
|
||||||
|
|
Loading…
Reference in a new issue