nixpkgs/pkgs/development/libraries/classads/default.nix
Artturin f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00

30 lines
878 B
Nix

{ lib, stdenv, fetchurl, autoreconfHook, pcre }:
stdenv.mkDerivation rec {
pname = "classads";
version = "1.0.10";
src = fetchurl {
url = "ftp://ftp.cs.wisc.edu/condor/classad/c++/classads-${version}.tar.gz";
sha256 = "1czgj53gnfkq3ncwlsrwnr4y91wgz35sbicgkp4npfrajqizxqnd";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ pcre ];
configureFlags = [
"--enable-namespace" "--enable-flexible-member"
];
# error: use of undeclared identifier 'finite'; did you mean 'isfinite'?
env.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;
};
}