ape: don't inherit lexicon from pkgs scope
parent
2523024f49
commit
90e5082576
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
callPackage ./. {
|
callPackage ./. {
|
||||||
pname = "ape-clex";
|
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)";
|
description = "Parser for Attempto Controlled English (ACE) with a large lexicon (~100,000 entries)";
|
||||||
license = with stdenv.lib; [ licenses.lgpl3 licenses.gpl3 ];
|
license = with stdenv.lib; [ licenses.lgpl3 licenses.gpl3 ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{ stdenv, swiProlog, makeWrapper,
|
{ stdenv, swiProlog, makeWrapper,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
lexicon ? "prolog/lexicon/clex_lexicon.pl",
|
lexiconPath ? "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 {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
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 ${lexiconPath} new_lexicon.pl
|
||||||
rm prolog/lexicon/clex_lexicon.pl
|
rm prolog/lexicon/clex_lexicon.pl
|
||||||
cp new_lexicon.pl prolog/lexicon/clex_lexicon.pl
|
cp new_lexicon.pl prolog/lexicon/clex_lexicon.pl
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue