nixpkgs/pkgs/by-name/li/libpoly/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
657 B
Nix
Raw Normal View History

2021-03-26 09:56:03 +00:00
{lib, stdenv, fetchFromGitHub, gmp, cmake, python3}:
stdenv.mkDerivation rec {
pname = "libpoly";
2023-08-07 04:40:37 +00:00
version = "0.1.13";
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}";
2023-08-07 04:40:37 +00:00
sha256 = "sha256-7aFz+6XJOVEA/Fmi0ywd6rZdTW8sHq8MoHqXR0Hc2o4=";
};
nativeBuildInputs = [ cmake ];
2021-03-26 09:56:03 +00:00
buildInputs = [ gmp python3 ];
strictDeps = true;
meta = with 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;
};
}