uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
68
pkgs/tools/text/link-grammar/default.nix
Normal file
68
pkgs/tools/text/link-grammar/default.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
, python3
|
||||
, flex
|
||||
, sqlite
|
||||
, libedit
|
||||
, runCommand
|
||||
, dieHook
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
link-grammar = stdenv.mkDerivation rec {
|
||||
pname = "link-grammar";
|
||||
version = "5.10.4";
|
||||
|
||||
outputs = [ "bin" "out" "dev" "man" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.abisource.com/downloads/${pname}/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-Pd4tEsre7aGTlEoereSElisCGXXhwgZDTMt4UEZIf4E=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
python3
|
||||
flex
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
sqlite
|
||||
libedit
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--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; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "A Grammar Checking library";
|
||||
homepage = "https://www.abisource.com/projects/link-grammar/";
|
||||
changelog = "https://github.com/opencog/link-grammar/blob/link-grammar-${version}/ChangeLog";
|
||||
license = licenses.lgpl21Only;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
link-grammar
|
||||
Loading…
Add table
Add a link
Reference in a new issue