depot/third_party/nixpkgs/pkgs/development/libraries/classads/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
874 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 = "Classified Advertisements library provides a generic means for matching resources";
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
};
}