nixpkgs/pkgs/development/libraries/cln/default.nix
Stanisław Pitucha ff84b1819c cln: fix darwin aarch build
Use gcc environment explicitly. The library manual does not mention
darwin explicitly and recommends only g++ as the compiler. Instead of
trying to patch the source to work with clang, just use g++ as expected.
2023-03-19 12:19:43 +11:00

21 lines
505 B
Nix

{ lib, gccStdenv, fetchurl, gmp }:
gccStdenv.mkDerivation rec {
pname = "cln";
version = "1.3.6";
src = fetchurl {
url = "${meta.homepage}${pname}-${version}.tar.bz2";
sha256 = "0jlq9l4hphk7qqlgqj9ihjp4m3rwjbhk6q4v00lsbgbri07574pl";
};
buildInputs = [ gmp ];
meta = with lib; {
description = "C/C++ library for numbers, a part of GiNaC";
homepage = "https://www.ginac.de/CLN/";
license = licenses.gpl2;
platforms = platforms.unix; # Once had cygwin problems
};
}