fcitx-engines.table-other: fix build for cmake 3.6 (#17721)

This commit is contained in:
Eric Sagnes 2016-08-14 20:19:15 +09:00 committed by Robin Gloster
parent eb3e23c49e
commit 4271b6d510

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, fcitx, gettext }:
{ stdenv, fetchurl, fetchpatch, cmake, fcitx, gettext }:
stdenv.mkDerivation rec {
name = "fcitx-table-other-${version}";
@ -11,6 +11,13 @@ stdenv.mkDerivation rec {
buildInputs = [ cmake fcitx gettext ];
patches = [
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/fcitx/fcitx-table-other/pull/2.diff";
sha256 = "1ai2zw4c0k5rr3xjhf4z7kcml9v8hvsbwdshwpmz2ybly2ncf5y7";
})
];
preInstall = ''
substituteInPlace tables/cmake_install.cmake \
--replace ${fcitx} $out