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
80
pkgs/tools/inputmethods/skk/skk-dicts/default.nix
Normal file
80
pkgs/tools/inputmethods/skk/skk-dicts/default.nix
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
{ lib, stdenv, fetchurl, buildPackages, libiconv, skktools }:
|
||||
|
||||
let
|
||||
# kana to kanji
|
||||
small = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/skk-dev/dict/8b35d07a7d2044d48b063d2774d9f9d00bb7cb48/SKK-JISYO.S";
|
||||
sha256 = "11cjrc8m99hj4xpl2nvzxanlswpapi92vmgk9d6yimdz0jidb6cq";
|
||||
};
|
||||
medium = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/skk-dev/dict/8b35d07a7d2044d48b063d2774d9f9d00bb7cb48/SKK-JISYO.M";
|
||||
sha256 = "0pwjp9qjmn9sq6zc0k6632l7dc2dbjn45585ibckvvl9iwfqqxdp";
|
||||
};
|
||||
large = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/skk-dev/dict/8b35d07a7d2044d48b063d2774d9f9d00bb7cb48/SKK-JISYO.L";
|
||||
sha256 = "0ps0a7sbkryd6hxvphq14i7g5wci4gvr0vraac8ia2ww67a2xbyc";
|
||||
};
|
||||
|
||||
# english to japanese
|
||||
edict = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/skk-dev/dict/8b35d07a7d2044d48b063d2774d9f9d00bb7cb48/SKK-JISYO.edict";
|
||||
sha256 = "1vrwnq0vvjn61nijbln6wfinqg93802d2a8d4ad82n692v83b1li";
|
||||
};
|
||||
# misc
|
||||
assoc = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/skk-dev/dict/8b35d07a7d2044d48b063d2774d9f9d00bb7cb48/SKK-JISYO.assoc";
|
||||
sha256 = "1smcbyv6srrhnpl7ic9nqds9nz3g2dgqngmhzkrdlwmvcpvakp1v";
|
||||
};
|
||||
|
||||
iconvBin = if stdenv.isDarwin then libiconv else buildPackages.stdenv.cc.libc;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "skk-dicts-unstable";
|
||||
version = "2020-03-24";
|
||||
srcs = [ small medium large edict assoc ];
|
||||
nativeBuildInputs = [ skktools ] ++ lib.optional stdenv.isDarwin libiconv;
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
function dictname() {
|
||||
src=$1
|
||||
name=$(basename $src) # remove dir name
|
||||
dict=$(echo $name | cut -b34-) # remove sha256 prefix
|
||||
echo $dict
|
||||
}
|
||||
mkdir -p $out/share
|
||||
|
||||
for src in $srcs; do
|
||||
dst=$out/share/$(dictname $src)
|
||||
echo ";;; -*- coding: utf-8 -*-" > $dst # libskk requires this on the first line
|
||||
${lib.getBin iconvBin}/bin/iconv \
|
||||
-f EUC-JP -t UTF-8 $src | skkdic-expr2 >> $dst
|
||||
done
|
||||
|
||||
# combine .L .edict and .assoc for convenience
|
||||
dst=$out/share/SKK-JISYO.combined
|
||||
echo ";;; -*- coding: utf-8 -*-" > $dst
|
||||
skkdic-expr2 \
|
||||
$out/share/$(dictname ${large}) + \
|
||||
$out/share/$(dictname ${edict}) + \
|
||||
$out/share/$(dictname ${assoc}) >> $dst
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A collection of standard SKK dictionaries";
|
||||
longDescription = ''
|
||||
This package provides a collection of standard kana-to-kanji
|
||||
dictionaries for the SKK Japanese input method.
|
||||
'';
|
||||
homepage = "https://github.com/skk-dev/dict";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ yuriaisaka ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
45
pkgs/tools/inputmethods/skk/skktools/default.nix
Normal file
45
pkgs/tools/inputmethods/skk/skktools/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkg-config, gdbm, glib }:
|
||||
|
||||
# Note (2017-10-24, yuriaisaka):
|
||||
# - Version 1.3.3 dates from Jul. 19, 2013.
|
||||
# - The latest commit to the github repo dates from Mar. 05, 2017
|
||||
# - The repo since appears to have become a kitchen sink place to keep
|
||||
# misc tools to handle SKK dictionaries, and these tools have runtime
|
||||
# dependencies on a Ruby interpreter etc.
|
||||
# - We for the moment do not package them to keep the dependencies slim.
|
||||
# Probably, shall package the newer tools as skktools-extra in the future.
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "skktools";
|
||||
version = "1.3.4";
|
||||
src = fetchFromGitHub {
|
||||
owner = "skk-dev";
|
||||
repo = "skktools";
|
||||
rev = "skktools-${lib.replaceStrings ["."] ["_"] version}";
|
||||
sha256 = "1zway8jsm18279xq8zlpr84iqiw373x3v0ysay74n9bjqxbl234a";
|
||||
};
|
||||
# # See "12.2. Package naming"
|
||||
# name = "skktools-unstable-${version}";
|
||||
# version = "2017-03-05";
|
||||
# src = fetchFromGitHub {
|
||||
# owner = "skk-dev";
|
||||
# repo = "skktools";
|
||||
# rev = "e14d98e734d2fdff611385c7df65826e94d929db";
|
||||
# sha256 = "1k9zxqybl1l5h0a8px2awc920qrdyp1qls50h3kfrj3g65d08aq2";
|
||||
# };
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ gdbm glib ];
|
||||
|
||||
meta = {
|
||||
description = "A collection of tools to edit SKK dictionaries";
|
||||
longDescription = ''
|
||||
This package provides a collection of tools to manipulate
|
||||
(merge, sort etc.) the dictionaries formatted for SKK Japanese
|
||||
input method.
|
||||
'';
|
||||
homepage = "https://github.com/skk-dev/skktools";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ yuriaisaka ];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue