2018-07-12 23:00:33 +01:00
|
|
|
{stdenv, fetchFromGitHub, gmp, cmake, python}:
|
2017-07-07 05:30:30 +01:00
|
|
|
|
2018-07-12 23:00:33 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libpoly";
|
|
|
|
version = "0.1.7";
|
2017-07-07 05:30:30 +01:00
|
|
|
|
2018-07-12 23:00:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SRI-CSL";
|
|
|
|
repo = "libpoly";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0i5ar4lhs88glk0rvkmag656ii434i6i1q5dspx6d0kyg78fii64";
|
2017-07-07 05:30:30 +01:00
|
|
|
};
|
|
|
|
|
2018-07-12 23:00:33 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ gmp python ];
|
2017-07-07 05:30:30 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/SRI-CSL/libpoly;
|
|
|
|
description = "C library for manipulating polynomials";
|
2017-07-07 20:54:32 +01:00
|
|
|
license = licenses.lgpl3;
|
2017-07-07 05:30:30 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|