2021-04-05 15:23:46 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, gmp, cmake, python3}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libpoly";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "0.1.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SRI-CSL";
|
|
|
|
repo = "libpoly";
|
|
|
|
# they've pushed to the release branch, use explicit tag
|
|
|
|
rev = "refs/tags/v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "sha256-vrYB6RQYShipZ0c0j1KcSTJR1h0rQKAAeJvODMar1GM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ gmp python3 ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/SRI-CSL/libpoly";
|
|
|
|
description = "C library for manipulating polynomials";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|