nixpkgs/pkgs/by-name/ad/adolc/package.nix

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

30 lines
666 B
Nix
Raw Normal View History

2024-11-08 23:45:31 +00:00
{
lib,
stdenv,
fetchFromGitHub,
2024-11-08 23:54:57 +00:00
llvmPackages,
2024-11-08 23:45:31 +00:00
}:
2022-03-08 13:50:34 +00:00
2024-11-08 23:50:50 +00:00
stdenv.mkDerivation (finalAttrs: {
2022-03-08 13:50:34 +00:00
pname = "adolc";
version = "2.7.2";
src = fetchFromGitHub {
owner = "coin-or";
repo = "ADOL-C";
2024-11-08 23:50:50 +00:00
rev = "refs/tags/releases/${finalAttrs.version}";
hash = "sha256-oU229SuOl/gHoRT8kiWfd5XFiByjeypgdVWFLMYFHfA=";
2022-03-08 13:50:34 +00:00
};
configureFlags = [ "--with-openmp-flag=-fopenmp" ];
2024-11-08 23:54:57 +00:00
buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
2022-03-08 13:50:34 +00:00
meta = with lib; {
description = "Automatic Differentiation of C/C++";
homepage = "https://github.com/coin-or/ADOL-C";
maintainers = [ maintainers.bzizou ];
license = licenses.gpl2Plus;
};
2024-11-08 23:50:50 +00:00
})