Skip to content
Snippets Groups Projects
Select Git revision
  • 1407ebcfae500509594ce05036ebc52ff362b3f9
  • master default protected
  • modcheck
  • fuzzy
  • cleanup
  • coalg-el
  • VMCAI-2024
  • v2.4
  • CADE-29
  • v2.3
  • v2.2
  • v2.1
  • v2.0
  • v1.1
  • v1.0
15 results

cool-lib.nix

Blame
  • cool-lib.nix 1.14 KiB
    { lib, buildDunePackage, qcheck, ounit, camlp-streams, cool-generators, ocamlgraph, fetchgit, pgsolver, glibc, zlib, minisat, ocamline, profile ? null, versions, doCheck ? true }:
    
    buildDunePackage ({
      pname = "cool-lib";
    
      inherit doCheck;
    
      useDune2 = true;
    
      src = ../lib;
    
      buildInputs = [ zlib.dev minisat glibc];
      propagatedBuildInputs = [ ocamlgraph pgsolver ocamline camlp-streams ];
    
      # buildPhase = ''
      #   runHook preBuild
      #   dune build ${if isNull profile then "" else "--profile=${profile}"} ''${enableParallelBuilding:+-j $NIX_BUILD_CORES}
      #   runHook postBuild
      # '';
    
      checkInputs = [ ounit qcheck cool-generators ];
    
      OUNIT_CI = "true";
    
      postInstall = if doCheck then ''
        mkdir $out/tests
        cp _build/default/tests/testsuite/testsuite.xml $out/tests/
        cp _build/default/tests/unit_tests/unit_tests.xml $out/tests/
      '' else "";
    
      meta = with lib; {
        homepage = https://www8.cs.fau.de/research/cool-the-coalgebraic-ontology-logic-reasoner/;
        description = "Generic reasoner for modal, hybrid and fixpoint logics";
        license = licenses.gpl3;
        maintainers = with maintainers; [ mgttlinger ];
      };
    } // versions)