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
67
pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
Normal file
67
pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, autoreconfHook, docbook2x, pkg-config
|
||||
, gtk3, dconf, gobject-introspection
|
||||
, ibus, python3, wrapGAppsHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ibus-table";
|
||||
version = "1.16.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kaio";
|
||||
repo = "ibus-table";
|
||||
rev = version;
|
||||
sha256 = "sha256-rejYxuRhzNmtx11NH3BZe3ODjU5OyZ9sgk6GWnBBXAo=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Data paths will be set at run-time.
|
||||
sed -e "/export IBUS_TABLE_LIB_LOCATION=/ s/^.*$//" \
|
||||
-e "/export IBUS_TABLE_LOCATION=/ s/^.*$//" \
|
||||
-i "engine/ibus-engine-table.in"
|
||||
sed -e "/export IBUS_TABLE_BIN_PATH=/ s/^.*$//" \
|
||||
-e "/export IBUS_TABLE_DATA_DIR=/ s/^.*$//" \
|
||||
-i "engine/ibus-table-createdb.in"
|
||||
sed -e "/export IBUS_PREFIX=/ s/^.*$//" \
|
||||
-e "/export IBUS_DATAROOTDIR=/ s/^.$//" \
|
||||
-e "/export IBUS_LOCALEDIR=/ s/^.$//" \
|
||||
-i "setup/ibus-setup-table.in"
|
||||
substituteInPlace engine/tabcreatedb.py --replace '/usr/share/ibus-table' $out/share/ibus-table
|
||||
substituteInPlace engine/ibus_table_location.py \
|
||||
--replace '/usr/libexec' $out/libexec \
|
||||
--replace '/usr/share/ibus-table/' $out/share/ibus-table/
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
dconf
|
||||
gtk3
|
||||
ibus
|
||||
(python3.withPackages (pypkgs: with pypkgs; [
|
||||
dbus-python
|
||||
pygobject3
|
||||
(toPythonModule ibus)
|
||||
]))
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
docbook2x
|
||||
pkg-config
|
||||
gobject-introspection
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
postUnpack = ''
|
||||
substituteInPlace $sourceRoot/engine/Makefile.am \
|
||||
--replace "docbook2man" "docbook2man --sgml"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
isIbusEngine = true;
|
||||
description = "An IBus framework for table-based input methods";
|
||||
homepage = "https://github.com/kaio/ibus-table/wiki";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mudri ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue