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
16
pkgs/tools/text/mecab/base.nix
Normal file
16
pkgs/tools/text/mecab/base.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ fetchurl }:
|
||||
|
||||
{
|
||||
version = "0.996";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE";
|
||||
name = "mecab-0.996.tar.gz";
|
||||
sha256 = "0ncwlqxl1hdn1x4v4kr2sn1sbbcgnhdphp0lcvk74nqkhdbk4wz0";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
make
|
||||
make check
|
||||
'';
|
||||
}
|
||||
21
pkgs/tools/text/mecab/default.nix
Normal file
21
pkgs/tools/text/mecab/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ lib, stdenv, fetchurl, mecab-ipadic }:
|
||||
|
||||
let
|
||||
mecab-base = import ./base.nix { inherit fetchurl; };
|
||||
in
|
||||
stdenv.mkDerivation (mecab-base // {
|
||||
pname = "mecab";
|
||||
version = mecab-base.version;
|
||||
|
||||
postInstall = ''
|
||||
sed -i 's|^dicdir = .*$|dicdir = ${mecab-ipadic}|' "$out/etc/mecabrc"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Japanese morphological analysis system";
|
||||
homepage = "http://taku910.github.io/mecab/";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ auntie ];
|
||||
};
|
||||
})
|
||||
18
pkgs/tools/text/mecab/ipadic.nix
Normal file
18
pkgs/tools/text/mecab/ipadic.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ stdenv, fetchurl, mecab-nodic }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "mecab-ipadic";
|
||||
version = "2.7.0-20070801";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM";
|
||||
name = "mecab-ipadic-2.7.0-20070801.tar.gz";
|
||||
sha256 = "08rmkvj0f0x6jq0axrjw2y5nam0mavv6x77dp9v4al0wi1ym4bxn";
|
||||
};
|
||||
|
||||
buildInputs = [ mecab-nodic ];
|
||||
|
||||
configurePhase = ''
|
||||
./configure --with-dicdir="$out"
|
||||
'';
|
||||
}
|
||||
9
pkgs/tools/text/mecab/nodic.nix
Normal file
9
pkgs/tools/text/mecab/nodic.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
let
|
||||
mecab-base = import ./base.nix { inherit fetchurl; };
|
||||
in
|
||||
stdenv.mkDerivation (mecab-base // {
|
||||
pname = "mecab-nodic";
|
||||
version = mecab-base.version;
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue