mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
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,
|
{ stdenv, swiProlog, makeWrapper,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
lexicon ? "lexicon/clex_lexicon.pl",
|
lexicon ? "prolog/lexicon/clex_lexicon.pl",
|
||||||
pname ? "ape",
|
pname ? "ape",
|
||||||
description ? "Parser for Attempto Controlled English (ACE)",
|
description ? "Parser for Attempto Controlled English (ACE)",
|
||||||
license ? with stdenv.lib; licenses.lgpl3
|
license ? with stdenv.lib; licenses.lgpl3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
inherit pname;
|
||||||
version = "6.7-131003";
|
version = "2019-08-10";
|
||||||
|
|
||||||
buildInputs = [ swiProlog makeWrapper ];
|
buildInputs = [ swiProlog makeWrapper ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Attempto";
|
owner = "Attempto";
|
||||||
repo = "APE";
|
repo = "APE";
|
||||||
rev = version;
|
rev = "113b81621262d7a395779465cb09397183e6f74c";
|
||||||
sha256 = "0cw47qjg4896kw3vps6rfs02asvscsqvcfdiwgfmqb3hvykb1sdx";
|
sha256 = "0xyvna2fbr18hi5yvm0zwh77q02dfna1g4g53z9mn2rmlfn2mhjh";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
# We move the file first to avoid "same file" error in the default case
|
# We move the file first to avoid "same file" error in the default case
|
||||||
cp ${lexicon} new_lexicon.pl
|
cp ${lexicon} new_lexicon.pl
|
||||||
rm lexicon/clex_lexicon.pl
|
rm prolog/lexicon/clex_lexicon.pl
|
||||||
cp new_lexicon.pl lexicon/clex_lexicon.pl
|
cp new_lexicon.pl prolog/lexicon/clex_lexicon.pl
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make build
|
make SHELL=${stdenv.shell} build
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user