forked from mirrors/nixpkgs
Merge pull request #68790 from JohnAZoidberg/fix-ape
ape: 6.7-131003 -> 2019-08-10
This commit is contained in:
commit
44f5a5c440
|
@ -1,33 +1,33 @@
|
|||
{ stdenv, swiProlog, makeWrapper,
|
||||
fetchFromGitHub,
|
||||
lexicon ? "lexicon/clex_lexicon.pl",
|
||||
lexicon ? "prolog/lexicon/clex_lexicon.pl",
|
||||
pname ? "ape",
|
||||
description ? "Parser for Attempto Controlled English (ACE)",
|
||||
license ? with stdenv.lib; licenses.lgpl3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
version = "6.7-131003";
|
||||
inherit pname;
|
||||
version = "2019-08-10";
|
||||
|
||||
buildInputs = [ swiProlog makeWrapper ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Attempto";
|
||||
repo = "APE";
|
||||
rev = version;
|
||||
sha256 = "0cw47qjg4896kw3vps6rfs02asvscsqvcfdiwgfmqb3hvykb1sdx";
|
||||
rev = "113b81621262d7a395779465cb09397183e6f74c";
|
||||
sha256 = "0xyvna2fbr18hi5yvm0zwh77q02dfna1g4g53z9mn2rmlfn2mhjh";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
# We move the file first to avoid "same file" error in the default case
|
||||
cp ${lexicon} new_lexicon.pl
|
||||
rm lexicon/clex_lexicon.pl
|
||||
cp new_lexicon.pl lexicon/clex_lexicon.pl
|
||||
rm prolog/lexicon/clex_lexicon.pl
|
||||
cp new_lexicon.pl prolog/lexicon/clex_lexicon.pl
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make build
|
||||
make SHELL=${stdenv.shell} build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in a new issue