Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.1 kB · 120 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121{ lib, stdenv, fetchurl, fetchFromGitHub, pkg-config, buildPackages, cmake, extra-cmake-modules, wayland-scanner, cairo, pango, expat, fribidi, fmt, wayland, systemd, wayland-protocols, json_c, isocodes, xkeyboard_config, enchant, gdk-pixbuf, libGL, libuuid, libselinux, libXdmcp, libsepol, libxkbcommon, libthai, libdatrie, xcbutilkeysyms, xcbutil, xcbutilwm, xcb-imdkit, libxkbfile, nixosTests, gettext,}:let enDictVer = "20121020"; enDict = fetchurl { url = "https://download.fcitx-im.org/data/en_dict-${enDictVer}.tar.gz"; hash = "sha256-xEpdeEeSXuqeTS0EdI1ELNKN2SmaC1cu99kerE9abOs="; };instdenv.mkDerivation rec { pname = "fcitx5"; version = "5.1.12";
src = fetchFromGitHub { owner = "fcitx"; repo = pname; rev = version; hash = "sha256-Jk7YY6nrY1Yn9KeNlRJbMF/fCMIlUVg/Elt7SymlK84="; };
prePatch = '' ln -s ${enDict} src/modules/spell/$(stripHash ${enDict}) '';
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config wayland-scanner gettext ];
buildInputs = [ expat fmt isocodes cairo enchant pango libthai libdatrie fribidi systemd gdk-pixbuf wayland wayland-protocols json_c libGL libuuid libselinux libsepol libXdmcp libxkbcommon xcbutil xcbutilwm xcbutilkeysyms xcb-imdkit xkeyboard_config libxkbfile ];
cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ (lib.cmakeFeature "CMAKE_CROSSCOMPILING_EMULATOR" (stdenv.hostPlatform.emulator buildPackages)) ];
strictDeps = true;
passthru = { updateScript = ./update.py; tests = { inherit (nixosTests) fcitx5; }; };
meta = with lib; { description = "Next generation of fcitx"; homepage = "https://github.com/fcitx/fcitx5"; license = licenses.lgpl21Plus; mainProgram = "fcitx5"; maintainers = with maintainers; [ poscat ]; platforms = platforms.linux; };}