Unverified Commit ce994f1a authored by Vincent Laporte's avatar Vincent Laporte Committed by GitHub
Browse files

acgtk: 2.1.0 -> 2.2.0 (#484383)

parents 4847e4d4 cee054ce
Loading
Loading
Loading
Loading
+9 −22
Original line number Diff line number Diff line
@@ -10,43 +10,30 @@
stdenv.mkDerivation {

  pname = "acgtk";
  version = "2.1.0";
  version = "2.2.0";

  src = fetchFromGitLab {
    domain = "gitlab.inria.fr";
    owner = "acg";
    repo = "dev/acgtk";
    tag = "release-2.1.0";
    hash = "sha256-XuPcubt1lvnQio+km6MhmDu41NXNVXKKpzGd/Y1XzLo=";
    tag = "release-2.2.0";
    hash = "sha256-cDP41a3CHh+KW2PAZ3WTRA2HTXKhb8mMCTNddv6M8Bg=";
  };

  # Compatibility with fmt 0.10.0
  patches = [
    (fetchpatch {
      url = "https://gitlab.inria.fr/ACG/dev/ACGtk/-/commit/613454b376d10974f539ab398a269be061c5bc9c.patch";
      hash = "sha256-l/V8oEgntnFtrhpTQSk7PkpaX+dBq4izG/tloCQRbDY=";
    })
  ];

  # Compatibility with logs 0.8.0
  postPatch = ''
    substituteInPlace src/utils/dune \
      --replace-warn 'logs mtime' 'logs logs.fmt mtime'
  '';

  strictDeps = true;

  nativeBuildInputs = with ocamlPackages; [
    dune
    findlib
    menhir
    ocaml
    findlib
    dune
  ];

  buildInputs = with ocamlPackages; [
    ansiterminal
    cairo2
    cmdliner
    dune-site
    fmt
    logs
    menhirLib
@@ -59,12 +46,12 @@ stdenv.mkDerivation {

  buildPhase = ''
    runHook preBuild
    dune build --profile=release ''${enableParallelBuilding:+-j $NIX_BUILD_CORES}
    dune build -p acgtk --profile=release ''${enableParallelBuilding:+-j $NIX_BUILD_CORES}
    runHook postBuild
  '';

  installPhase = ''
    dune install --prefix $out --libdir $OCAMLFIND_DESTDIR
    dune install -p acgtk --prefix $out --libdir $OCAMLFIND_DESTDIR
  '';

  meta = {
@@ -72,6 +59,6 @@ stdenv.mkDerivation {
    description = "Toolkit for developing ACG signatures and lexicon";
    license = lib.licenses.cecill20;
    inherit (ocamlPackages.ocaml.meta) platforms;
    maintainers = with lib.maintainers; [ jirkamarsik ];
    maintainers = with lib.maintainers; [ tournev ];
  };
}