1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 cmake,
7 nix-update-script,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "codipack";
12 version = "3.0.0";
13
14 src = fetchFromGitHub {
15 owner = "SciCompKL";
16 repo = "CoDiPack";
17 tag = "v${finalAttrs.version}";
18 hash = "sha256-dGzLPU8YOrBdXPwUnEElqfxzbUdkAQxtv2+7+itNsyI=";
19 };
20
21 nativeBuildInputs = [
22 cmake
23 pkg-config
24 ];
25
26 passthru.updateScript = nix-update-script { };
27
28 meta = {
29 description = "Fast gradient evaluation in C++ based on Expression Templates";
30 homepage = "https://scicomp.rptu.de/software/codi/";
31 license = lib.licenses.gpl3Plus;
32 maintainers = with lib.maintainers; [
33 athas
34 ];
35 };
36})