mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
ff84b1819c
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.
21 lines
505 B
Nix
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
|
|
};
|
|
}
|