mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 09:54:52 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
30 lines
887 B
Nix
30 lines
887 B
Nix
{ stdenv, fetchurl, cmake, pkgconfig, fcitx, gettext, curl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fcitx-cloudpinyin";
|
|
version = "0.3.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.fcitx-im.org/fcitx-cloudpinyin/${pname}-${version}.tar.xz";
|
|
sha256 = "1f3ryx817bxb8g942l50ng4xg0gp50rb7pv2p6zf98r2z804dcvf";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ cmake fcitx gettext curl ];
|
|
|
|
preInstall = ''
|
|
substituteInPlace src/cmake_install.cmake \
|
|
--replace ${fcitx} $out
|
|
substituteInPlace po/cmake_install.cmake \
|
|
--replace ${fcitx} $out
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
isFcitxEngine = true;
|
|
description = "A standalone module for fcitx that uses web API to provide better pinyin result";
|
|
homepage = https://github.com/fcitx/fcitx-cloudpinyin;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|