From 749fb432008e97c21f927efdf20093b6a2bbec76 Mon Sep 17 00:00:00 2001 From: Casey Ransom Date: Tue, 27 Sep 2022 16:36:26 -0400 Subject: [PATCH] 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. --- pkgs/tools/networking/pdsh/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/pdsh/default.nix b/pkgs/tools/networking/pdsh/default.nix index 531dfeeb4c45..43aa6f9f1470 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"