3e2acf8aff
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
27 lines
656 B
Nix
27 lines
656 B
Nix
{lib, stdenv, fetchFromGitHub, gmp, cmake, python3}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libpoly";
|
|
version = "0.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SRI-CSL";
|
|
repo = "libpoly";
|
|
# they've pushed to the release branch, use explicit tag
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-E2lHo8Bt4ujoGQ623fjkQbqRnDYJYilXdRt4lnF4wJk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ gmp python3 ];
|
|
|
|
strictDeps = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/SRI-CSL/libpoly";
|
|
description = "C library for manipulating polynomials";
|
|
license = licenses.lgpl3;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|