Merge pull request #209789 from wegank/classads-darwin

classads: unbreak on aarch64-darwin
This commit is contained in:
Sandro 2023-01-18 14:33:33 +01:00 committed by GitHub
commit 47c0bb83c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, pcre }:
{ lib, stdenv, fetchurl, autoreconfHook, pcre }:
stdenv.mkDerivation rec {
pname = "classads";
@ -9,18 +9,21 @@ stdenv.mkDerivation rec {
sha256 = "1czgj53gnfkq3ncwlsrwnr4y91wgz35sbicgkp4npfrajqizxqnd";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ pcre ];
configureFlags = [
"--enable-namespace" "--enable-flexible-member"
];
# error: use of undeclared identifier 'finite'; did you mean 'isfinite'?
NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite";
meta = {
homepage = "http://www.cs.wisc.edu/condor/classad/";
description = "The Classified Advertisements library provides a generic means for matching resources";
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
# never built on aarch64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin && stdenv.isAarch64;
};
}