mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
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 {
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user