Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0aa4a4535819
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b3ed2b4c1825
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Nov 4, 2018

  1. acgtk: 1.3.1 -> 1.5.0

    vbgl committed Nov 4, 2018

    Unverified

    No user is associated with the committer email.
    Copy the full SHA
    08ac103 View commit details
  2. Merge pull request #49728 from vbgl/acgtk-1.5.0

    acgtk: 1.3.1 -> 1.5.0
    Mic92 authored Nov 4, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b3ed2b4 View commit details
50 changes: 10 additions & 40 deletions pkgs/applications/science/logic/acgtk/default.nix
Original file line number Diff line number Diff line change
@@ -1,57 +1,27 @@
{ stdenv, fetchurl, ocamlPackages,
buildBytecode ? true,
buildNative ? true,
installExamples ? true,
installEmacsMode ? true }:

let inherit (stdenv.lib) versionAtLeast optionalString; in

let inherit (ocamlPackages) ocaml camlp4; in

assert buildBytecode || buildNative;
{ stdenv, fetchurl, dune, ocamlPackages }:

stdenv.mkDerivation {

name = "acgtk-1.3.1";
name = "acgtk-1.5.0";

src = fetchurl {
url = http://calligramme.loria.fr/acg/software/acg-1.3.1-20170303.tar.gz;
sha256 = "1hhrf6bx2x2wbv5ldn4fnxhpr9lyrj3zh1vcnx8wf8f06ih4rzfq";
url = http://calligramme.loria.fr/acg/software/acg-1.5.0-20181019.tar.gz;
sha256 = "14n003gxzw5w79hlpw1ja4nq97jqf9zqyg00ihvpxw4bv9jlm8jm";
};

buildInputs = with ocamlPackages; [
ocaml findlib camlp4 ansiterminal biniou bolt cairo2 dypgen easy-format ocf yojson
];

patches = [ ./install-emacs-to-site-lisp.patch
./use-nix-ocaml-byteflags.patch ];

postPatch = optionalString (camlp4 != null) ''
substituteInPlace src/Makefile.master.in \
--replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4/"
'' + optionalString (versionAtLeast (stdenv.lib.getVersion ocamlPackages.yojson) "1.4") ''
substituteInPlace src/scripting/Makefile.in --replace yojson.cmo yojson.cma
'';

# The bytecode executable is dependent on the dynamic library provided by
# ANSITerminal. We can use the -dllpath flag of ocamlc (analogous to
# -rpath) to make sure that ocamlrun is able to link the library at
# runtime and that Nix detects a runtime dependency.
NIX_OCAML_BYTEFLAGS = "-dllpath ${ocamlPackages.ansiterminal}/lib/ocaml/${ocaml.version}/site-lib/ANSITerminal";
buildInputs = [ dune ] ++ (with ocamlPackages; [
ocaml findlib ansiterminal cairo2 fmt logs menhir mtime ocf
]);

buildFlags = optionalString buildBytecode "byte"
+ " "
+ optionalString buildNative "opt";
buildPhase = "dune build";

installTargets = "install"
+ " " + optionalString installExamples "install-examples"
+ " " + optionalString installEmacsMode "install-emacs";
inherit (dune) installPhase;

meta = with stdenv.lib; {
homepage = http://calligramme.loria.fr/acg/;
description = "A toolkit for developing ACG signatures and lexicon";
license = licenses.cecill20;
platforms = ocaml.meta.platforms or [];
inherit (ocamlPackages.ocaml.meta) platforms;
maintainers = [ maintainers.jirkamarsik ];
};
}

This file was deleted.

This file was deleted.

4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -21340,9 +21340,7 @@ with pkgs;

abella = callPackage ../applications/science/logic/abella {};

acgtk = callPackage ../applications/science/logic/acgtk {
ocamlPackages = ocaml-ng.ocamlPackages_4_05;
};
acgtk = callPackage ../applications/science/logic/acgtk {};

alt-ergo = callPackage ../applications/science/logic/alt-ergo {};