Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 865 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 vala, 6 intltool, 7 pkg-config, 8 libkkc, 9 ibus, 10 skkDictionaries, 11 gtk3, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "ibus-kkc"; 16 version = "1.5.22"; 17 18 src = fetchurl { 19 url = "${meta.homepage}/releases/download/v${version}/${pname}-${version}.tar.gz"; 20 sha256 = "1kj74c9zy9yxkjx7pz96mzqc13cf10yfmlgprr8sfd4ay192bzi2"; 21 }; 22 23 nativeBuildInputs = [ 24 vala 25 intltool 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 libkkc 31 ibus 32 gtk3 33 ]; 34 35 postInstall = '' 36 ln -s ${skkDictionaries.l}/share/skk $out/share/skk 37 ''; 38 39 meta = with lib; { 40 isIbusEngine = true; 41 description = "Libkkc (Japanese Kana Kanji input method) engine for ibus"; 42 homepage = "https://github.com/ueno/ibus-kkc"; 43 license = licenses.gpl2Plus; 44 platforms = platforms.linux; 45 maintainers = with maintainers; [ vanzef ]; 46 }; 47}