2023-01-20 10:41:00 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pcre }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "classads";
|
2021-07-18 21:22:44 +00:00
|
|
|
version = "1.0.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.cs.wisc.edu/condor/classad/c++/classads-${version}.tar.gz";
|
|
|
|
sha256 = "1czgj53gnfkq3ncwlsrwnr4y91wgz35sbicgkp4npfrajqizxqnd";
|
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ pcre ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-namespace" "--enable-flexible-member"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
# error: use of undeclared identifier 'finite'; did you mean 'isfinite'?
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.cs.wisc.edu/condor/classad/";
|
|
|
|
description = "The Classified Advertisements library provides a generic means for matching resources";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|