treewide: fix *Flags
This commit is contained in:
committed by
Jan Tojnar
parent
20b02b80aa
commit
ac8eaa8507
@@ -25,9 +25,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Filesystem resize functions were reintroduced in parted 3.1 due to no other available free alternatives
|
||||
# but in a sepparate library -> libparted-fs-resize --- that's why the added LDFLAG
|
||||
makeFlags = ''
|
||||
LDFLAGS=-lparted-fs-resize
|
||||
'';
|
||||
makeFlags = [ "LDFLAGS=-lparted-fs-resize" ];
|
||||
|
||||
propagatedBuildInputs = [ parted utillinux ];
|
||||
|
||||
|
||||
@@ -75,20 +75,20 @@ stdenv.mkDerivation rec {
|
||||
libxkbcommon libxml2 dbus cairo gtk2 gtk3 pango qt4 libuuid
|
||||
];
|
||||
|
||||
cmakeFlags = ''
|
||||
-DENABLE_QT_IM_MODULE=ON
|
||||
-DENABLE_GTK2_IM_MODULE=ON
|
||||
-DENABLE_GTK3_IM_MODULE=ON
|
||||
-DENABLE_GIR=OFF
|
||||
-DENABLE_OPENCC=OFF
|
||||
-DENABLE_PRESAGE=OFF
|
||||
-DENABLE_XDGAUTOSTART=OFF
|
||||
-DENABLE_PINYIN=${if withPinyin then "ON" else "OFF"}
|
||||
-DENABLE_TABLE=ON
|
||||
-DENABLE_SPELL=ON
|
||||
-DENABLE_QT_GUI=ON
|
||||
-DXKB_RULES_XML_FILE='${xkeyboard_config}/share/X11/xkb/rules/evdev.xml'
|
||||
'';
|
||||
cmakeFlags = [
|
||||
"-DENABLE_QT_IM_MODULE=ON"
|
||||
"-DENABLE_GTK2_IM_MODULE=ON"
|
||||
"-DENABLE_GTK3_IM_MODULE=ON"
|
||||
"-DENABLE_GIR=OFF"
|
||||
"-DENABLE_OPENCC=OFF"
|
||||
"-DENABLE_PRESAGE=OFF"
|
||||
"-DENABLE_XDGAUTOSTART=OFF"
|
||||
"-DENABLE_PINYIN=${if withPinyin then "ON" else "OFF"}"
|
||||
"-DENABLE_TABLE=ON"
|
||||
"-DENABLE_SPELL=ON"
|
||||
"-DENABLE_QT_GUI=ON"
|
||||
"-DXKB_RULES_XML_FILE='${xkeyboard_config}/share/X11/xkb/rules/evdev.xml'"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/fcitx/fcitx;
|
||||
|
||||
@@ -9,12 +9,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0xf0r6zxaqan1drz61nqf95p2pkiiihpvrjhrr9dx9j3vswyx31g";
|
||||
};
|
||||
|
||||
buildFlags = with stdenv;
|
||||
buildFlags = with stdenv; [ (
|
||||
if isDarwin then "osx"
|
||||
else if isFreeBSD then "freebsd"
|
||||
else "cpulimit";
|
||||
else "cpulimit"
|
||||
) ];
|
||||
|
||||
installFlags = "PREFIX=$(out)";
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://limitcpu.sourceforge.net/;
|
||||
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
buildFlags = if stdenv.cc.isClang then [ "CC=clang" ] else null;
|
||||
buildFlags = stdenv.lib.optional stdenv.cc.isClang "CC=clang";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
|
||||
cmakeFlags="-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}";
|
||||
cmakeFlags = ["-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}" ];
|
||||
|
||||
buildInputs = [ python libxml2 glib openssl curl check gpgme ];
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation {
|
||||
${if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared"}
|
||||
)
|
||||
'';
|
||||
makeFlags = if static then "AM_LDFLAGS=-all-static" else "";
|
||||
makeFlags = stdenv.lib.optional static "AM_LDFLAGS=-all-static";
|
||||
dontDisableStatic = static;
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user