Skip to content

Commit

Permalink
adolc: modernize; fix clang build (NixOS#354642)
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman authored Nov 10, 2024
2 parents 9d30960 + b2f4323 commit 343b0a2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions pkgs/by-name/ad/adolc/package.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
{ lib, stdenv, fetchFromGitHub }:
{
lib,
stdenv,
fetchFromGitHub,
llvmPackages,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "adolc";
version = "2.7.2";

src = fetchFromGitHub {
owner = "coin-or";
repo = "ADOL-C";
sha256 = "1w0x0p32r1amfmh2lyx33j4cb5bpkwjr5z0ll43zi5wf5gsvckd1";
rev = "releases/${version}";
rev = "refs/tags/releases/${finalAttrs.version}";
hash = "sha256-oU229SuOl/gHoRT8kiWfd5XFiByjeypgdVWFLMYFHfA=";
};

configureFlags = [ "--with-openmp-flag=-fopenmp" ];

buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;

meta = with lib; {
description = "Automatic Differentiation of C/C++";
homepage = "https://github.com/coin-or/ADOL-C";
maintainers = [ maintainers.bzizou ];
license = licenses.gpl2Plus;
};
}

})

0 comments on commit 343b0a2

Please sign in to comment.