3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #193232 from cransom/pdsh-aarch64-darwin-fix

This commit is contained in:
Sandro 2022-10-01 20:51:46 +02:00 committed by GitHub
commit 90c4b93dad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"