nixpkgs/pkgs/applications/science/logic/poly/default.nix

26 lines
635 B
Nix
Raw Normal View History

{stdenv, fetchFromGitHub, gmp, cmake, python}:
stdenv.mkDerivation rec {
pname = "libpoly";
2020-03-26 10:48:43 +00:00
version = "0.1.8";
src = fetchFromGitHub {
owner = "SRI-CSL";
repo = "libpoly";
2020-04-09 17:39:15 +00:00
# they've pushed to the release branch, use explicit tag
rev = "refs/tags/v${version}";
sha256 = "1n3gijksnl2ybznq4lkwm2428f82423sxq18gnb2g1kiwqlzdaa3";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ gmp python ];
meta = with stdenv.lib; {
2020-03-26 10:48:43 +00:00
homepage = "https://github.com/SRI-CSL/libpoly";
description = "C library for manipulating polynomials";
license = licenses.lgpl3;
platforms = platforms.all;
};
}