diff options
author | Casey Ransom <casey@dailykos.com> | 2022-09-27 16:36:26 -0400 |
---|---|---|
committer | Casey Ransom <casey@dailykos.com> | 2022-10-01 11:26:30 -0400 |
commit | 749fb432008e97c21f927efdf20093b6a2bbec76 (patch) | |
tree | b18741c8855125202784ec4884fd5669bc48d58e | |
parent | f4d294eede9c747fb3ad207d02c67d822c48a304 (diff) |
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.
-rw-r--r-- | pkgs/tools/networking/pdsh/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/networking/pdsh/default.nix b/pkgs/tools/networking/pdsh/default.nix index 531dfeeb4c45d..43aa6f9f14701 100644 --- a/pkgs/tools/networking/pdsh/default.nix +++ b/pkgs/tools/networking/pdsh/default.nix @@ -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" |