at 24.05-pre 29 lines 878 B view raw
1{ lib, stdenv, fetchurl, autoreconfHook, pcre }: 2 3stdenv.mkDerivation rec { 4 pname = "classads"; 5 version = "1.0.10"; 6 7 src = fetchurl { 8 url = "ftp://ftp.cs.wisc.edu/condor/classad/c++/classads-${version}.tar.gz"; 9 sha256 = "1czgj53gnfkq3ncwlsrwnr4y91wgz35sbicgkp4npfrajqizxqnd"; 10 }; 11 12 nativeBuildInputs = [ autoreconfHook ]; 13 14 buildInputs = [ pcre ]; 15 16 configureFlags = [ 17 "--enable-namespace" "--enable-flexible-member" 18 ]; 19 20 # error: use of undeclared identifier 'finite'; did you mean 'isfinite'? 21 env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite"; 22 23 meta = { 24 homepage = "http://www.cs.wisc.edu/condor/classad/"; 25 description = "The Classified Advertisements library provides a generic means for matching resources"; 26 license = lib.licenses.asl20; 27 platforms = lib.platforms.unix; 28 }; 29}