mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 23:51:03 +00: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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user