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
55
pkgs/tools/inputmethods/ibus-engines/ibus-hangul/default.nix
Normal file
55
pkgs/tools/inputmethods/ibus-engines/ibus-hangul/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, substituteAll
|
||||
, appstream-glib
|
||||
, gettext
|
||||
, pkg-config
|
||||
, wrapGAppsHook
|
||||
, gtk3
|
||||
, ibus
|
||||
, libhangul
|
||||
, python3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ibus-hangul";
|
||||
version = "1.5.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/choehwanjin/ibus-hangul/releases/download/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "1q6g2pnrn5gqn9jqnm3975v9hh60hc5gn9x3zbrdjgy0n3wpxwm9";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
libhangul = "${libhangul}/lib/libhangul.so.1";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
appstream-glib
|
||||
gettext
|
||||
pkg-config
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
ibus
|
||||
libhangul
|
||||
(python3.withPackages (pypkgs: with pypkgs; [
|
||||
pygobject3
|
||||
(toPythonModule ibus)
|
||||
]))
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
isIbusEngine = true;
|
||||
description = "Ibus Hangul engine";
|
||||
homepage = "https://github.com/choehwanjin/ibus-hangul";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/setup/main.py b/setup/main.py
|
||||
index 8d581cd..2ac47b9 100644
|
||||
--- a/setup/main.py
|
||||
+++ b/setup/main.py
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
def get_hangul_keyboard_list():
|
||||
from ctypes import CDLL, c_int, c_char_p
|
||||
- libhangul = CDLL('libhangul.so.1')
|
||||
+ libhangul = CDLL('@libhangul@')
|
||||
libhangul.hangul_ic_get_n_keyboards.argtypes = []
|
||||
libhangul.hangul_ic_get_n_keyboards.restype = c_int
|
||||
libhangul.hangul_ic_get_keyboard_id.argtypes = [c_int]
|
||||
Loading…
Add table
Add a link
Reference in a new issue