Merge pull request #110043 from r-ryantm/auto-update/link-grammar
link-grammar: 5.8.0 -> 5.8.1
This commit is contained in:
commit
3df16a48bf
@ -1,14 +1,16 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, python3, sqlite, libedit, zlib }:
|
{ lib, stdenv, fetchurl, pkg-config, python3, sqlite, libedit, zlib, runCommand, dieHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
version = "5.8.0";
|
|
||||||
|
link-grammar = stdenv.mkDerivation rec {
|
||||||
|
version = "5.8.1";
|
||||||
pname = "link-grammar";
|
pname = "link-grammar";
|
||||||
|
|
||||||
outputs = [ "bin" "out" "dev" "man" ];
|
outputs = [ "bin" "out" "dev" "man" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.abisource.com/downloads/${pname}/${version}/${pname}-${version}.tar.gz";
|
url = "http://www.abisource.com/downloads/${pname}/${version}/${pname}-${version}.tar.gz";
|
||||||
sha256 = "1v8ngx77nachxln68xpvyw2lh7z59pzsi99h8j0mnrm0gjsacrdd";
|
sha256 = "sha256-EcT/VR+lFpJX2sxXUIDGOwdceQ7awpmEqUZBoJk7UFs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config python3 ];
|
nativeBuildInputs = [ pkg-config python3 ];
|
||||||
@ -18,11 +20,30 @@ stdenv.mkDerivation rec {
|
|||||||
"--disable-java-bindings"
|
"--disable-java-bindings"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
quick = runCommand "link-grammar-quick-test" {
|
||||||
|
buildInputs = [
|
||||||
|
link-grammar
|
||||||
|
dieHook
|
||||||
|
];
|
||||||
|
} ''
|
||||||
|
echo "Furiously sleep ideas green colorless." | link-parser en | grep "No complete linkages found." || die "Grammaticaly invalid sentence was parsed."
|
||||||
|
echo "Colorless green ideas sleep furiously." | link-parser en | grep "Found .* linkages." || die "Grammaticaly valid sentence was not parsed."
|
||||||
|
touch $out
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Grammar Checking library";
|
description = "A Grammar Checking library";
|
||||||
homepage = "https://www.abisource.com/projects/link-grammar/";
|
homepage = "https://www.abisource.com/projects/link-grammar/";
|
||||||
license = licenses.lgpl21;
|
changelog = "https://github.com/opencog/link-grammar/blob/link-grammar-${version}/ChangeLog";
|
||||||
|
license = licenses.lgpl21Only;
|
||||||
maintainers = with maintainers; [ jtojnar ];
|
maintainers = with maintainers; [ jtojnar ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
link-grammar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user