Merge pull request #277865 from adisbladis/ibus-engines-cangjie-init

ibus-engines.cangjie: init at unstable-2023-07-25

authored by adisbladis and committed by GitHub 12de5758 ebc0d8f6

+76
+74
pkgs/tools/inputmethods/ibus-engines/ibus-cangjie/default.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , gettext 5 + , pkg-config 6 + , wrapGAppsHook 7 + , ibus 8 + , glib 9 + , gobject-introspection 10 + , gtk3 11 + , python3 12 + , autoreconfHook 13 + , intltool 14 + }: 15 + 16 + let 17 + pythonModules = with python3.pkgs; [ 18 + pygobject3 19 + pycangjie 20 + (toPythonModule ibus) 21 + ]; 22 + 23 + # Upstream builds Python packages as a part of a non-python 24 + # autotools build, making it awkward to rely on Nixpkgs Python builders. 25 + # Hence we manually set up PYTHONPATH. 26 + pythonPath = "$out/${python3.sitePackages}" + ":" + python3.pkgs.makePythonPath pythonModules; 27 + 28 + in 29 + stdenv.mkDerivation { 30 + pname = "ibus-cangjie"; 31 + version = "unstable-2023-07-25"; 32 + 33 + src = fetchFromGitHub { 34 + owner = "Cangjians"; 35 + repo = "ibus-cangjie"; 36 + rev = "46c36f578047bb3cb2ce777217abf528649bc58d"; 37 + sha256 = "sha256-msVqWougc40bVXIonJA6K/VgurnDeR2TdtGKfd9rzwM="; 38 + }; 39 + 40 + buildInputs = [ 41 + glib 42 + gtk3 43 + ibus 44 + python3 45 + ] ++ pythonModules; 46 + 47 + nativeBuildInputs = [ 48 + autoreconfHook 49 + intltool 50 + gettext 51 + gobject-introspection 52 + pkg-config 53 + wrapGAppsHook 54 + ]; 55 + 56 + # Upstream builds Python packages as a part of a non-python 57 + # autotools build, making it awkward to rely on Nixpkgs Python builders. 58 + postInstall = '' 59 + gappsWrapperArgs+=(--prefix PYTHONPATH : "${pythonPath}") 60 + ''; 61 + 62 + postFixup = '' 63 + wrapGApp $out/lib/ibus-cangjie/ibus-engine-cangjie 64 + ''; 65 + 66 + meta = { 67 + isIbusEngine = true; 68 + description = "An IBus engine for users of the Cangjie and Quick input methods"; 69 + homepage = "https://github.com/Cangjians/ibus-cangjie"; 70 + license = lib.licenses.gpl3Plus; 71 + platforms = lib.platforms.linux; 72 + maintainers = with lib.maintainers; [ adisbladis ]; 73 + }; 74 + }
+2
pkgs/top-level/all-packages.nix
··· 7067 7067 7068 7068 bamboo = callPackage ../tools/inputmethods/ibus-engines/ibus-bamboo { }; 7069 7069 7070 + cangjie = callPackage ../tools/inputmethods/ibus-engines/ibus-cangjie { }; 7071 + 7070 7072 hangul = callPackage ../tools/inputmethods/ibus-engines/ibus-hangul { }; 7071 7073 7072 7074 kkc = callPackage ../tools/inputmethods/ibus-engines/ibus-kkc { };