nixpkgs/pkgs/development/libraries/cln/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

22 lines
528 B
Nix

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