2023-03-24 00:07:29 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, dune_3, ocamlPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
pname = "acgtk";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.inria.fr";
|
|
|
|
owner = "acg";
|
|
|
|
repo = "dev/acgtk";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "release-2.0.0-20231009";
|
|
|
|
hash = "sha256-ZymSQkBMBePPw7pJkfLkmqbIkQyIqB+7Pyrih2WAO50=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
nativeBuildInputs = with ocamlPackages; [ menhir ocaml findlib dune_3 ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
buildInputs = with ocamlPackages; [
|
2024-01-02 11:29:13 +00:00
|
|
|
ansiterminal cairo2 cmdliner fmt logs menhirLib mtime ocamlgraph readline sedlex yojson
|
2023-02-09 11:40:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
dune build --profile=release ''${enableParallelBuilding:+-j $NIX_BUILD_CORES}
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
installPhase = ''
|
|
|
|
dune install --prefix $out --libdir $OCAMLFIND_DESTDIR
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://acg.loria.fr/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Toolkit for developing ACG signatures and lexicon";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.cecill20;
|
|
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|