acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / cl / classads / package.nix
blob0442c7d21209d93d59ef155bfd16cebe647d8ebe
1 { lib, stdenv, fetchurl, autoreconfHook, pcre }:
3 stdenv.mkDerivation rec {
4   pname = "classads";
5   version = "1.0.10";
7   src = fetchurl {
8     url = "ftp://ftp.cs.wisc.edu/condor/classad/c++/classads-${version}.tar.gz";
9     sha256 = "1czgj53gnfkq3ncwlsrwnr4y91wgz35sbicgkp4npfrajqizxqnd";
10   };
12   nativeBuildInputs = [ autoreconfHook ];
14   buildInputs = [ pcre ];
16   configureFlags = [
17     "--enable-namespace" "--enable-flexible-member"
18   ];
20   # error: use of undeclared identifier 'finite'; did you mean 'isfinite'?
21   env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) "-Dfinite=isfinite";
23   meta = {
24     homepage = "http://www.cs.wisc.edu/condor/classad/";
25     description = "Classified Advertisements library provides a generic means for matching resources";
26     license = lib.licenses.asl20;
27     platforms = lib.platforms.unix;
28   };