1 { lib, stdenv, swi-prolog, makeWrapper,
3 lexiconPath ? "prolog/lexicon/clex_lexicon.pl",
5 description ? "Parser for Attempto Controlled English (ACE)",
6 license ? lib.licenses.lgpl3
9 stdenv.mkDerivation rec {
11 version = "2019-08-10";
13 nativeBuildInputs = [ makeWrapper ];
14 buildInputs = [ swi-prolog ];
16 src = fetchFromGitHub {
19 rev = "113b81621262d7a395779465cb09397183e6f74c";
20 sha256 = "0xyvna2fbr18hi5yvm0zwh77q02dfna1g4g53z9mn2rmlfn2mhjh";
24 # We move the file first to avoid "same file" error in the default case
25 cp ${lexiconPath} new_lexicon.pl
26 rm prolog/lexicon/clex_lexicon.pl
27 cp new_lexicon.pl prolog/lexicon/clex_lexicon.pl
31 make SHELL=${stdenv.shell} build
37 makeWrapper $out/ape.exe $out/bin/ape --add-flags ace
41 description = description;
43 platforms = platforms.unix;
44 maintainers = with maintainers; [ yrashk ];