ape: don't inherit lexicon from pkgs scope

This commit is contained in:
Jonathan Ringer 2020-10-04 09:00:16 -07:00 committed by Jon
parent 2523024f49
commit 90e5082576
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
callPackage ./. {
pname = "ape-clex";
lexicon = "${attemptoClex}/clex_lexicon.pl";
lexiconPath = "${attemptoClex}/clex_lexicon.pl";
description = "Parser for Attempto Controlled English (ACE) with a large lexicon (~100,000 entries)";
license = with stdenv.lib; [ licenses.lgpl3 licenses.gpl3 ];
}

View file

@ -1,10 +1,10 @@
{ stdenv, swiProlog, makeWrapper,
fetchFromGitHub,
lexicon ? "prolog/lexicon/clex_lexicon.pl",
lexiconPath ? "prolog/lexicon/clex_lexicon.pl",
pname ? "ape",
description ? "Parser for Attempto Controlled English (ACE)",
license ? with stdenv.lib; licenses.lgpl3
}:
}:
stdenv.mkDerivation rec {
inherit pname;
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
patchPhase = ''
# We move the file first to avoid "same file" error in the default case
cp ${lexicon} new_lexicon.pl
cp ${lexiconPath} new_lexicon.pl
rm prolog/lexicon/clex_lexicon.pl
cp new_lexicon.pl prolog/lexicon/clex_lexicon.pl
'';