parent
5963d94c3c
commit
0aaadc2b9e
|
@ -7,7 +7,6 @@
|
||||||
, enableRST ? true
|
, enableRST ? true
|
||||||
, enableSpelling ? true, gtkspell ? null
|
, enableSpelling ? true, gtkspell ? null
|
||||||
, enableNotifications ? false
|
, enableNotifications ? false
|
||||||
, enableLaTeX ? false, texLive ? null
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert enableJingle -> farstream != null && gst_plugins_bad != null
|
assert enableJingle -> farstream != null && gst_plugins_bad != null
|
||||||
|
@ -16,7 +15,6 @@ assert enableE2E -> pythonPackages.pycrypto != null;
|
||||||
assert enableRST -> pythonPackages.docutils != null;
|
assert enableRST -> pythonPackages.docutils != null;
|
||||||
assert enableSpelling -> gtkspell != null;
|
assert enableSpelling -> gtkspell != null;
|
||||||
assert enableNotifications -> pythonPackages.notify != null;
|
assert enableNotifications -> pythonPackages.notify != null;
|
||||||
assert enableLaTeX -> texLive != null;
|
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
|
@ -51,11 +49,6 @@ stdenv.mkDerivation rec {
|
||||||
'' + optionalString enableSpelling ''
|
'' + optionalString enableSpelling ''
|
||||||
sed -i -e 's|=.*find_lib.*|= "${gtkspell}/lib/libgtkspell.so"|' \
|
sed -i -e 's|=.*find_lib.*|= "${gtkspell}/lib/libgtkspell.so"|' \
|
||||||
src/gtkspell.py
|
src/gtkspell.py
|
||||||
'' + optionalString enableLaTeX ''
|
|
||||||
sed -i -e "s|try_run(.'dvipng'|try_run(['${texLive}/bin/dvipng'|" \
|
|
||||||
-e "s|try_run(.'latex'|try_run(['${texLive}/bin/latex'|" \
|
|
||||||
-e 's/tmpfd.close()/os.close(tmpfd)/' \
|
|
||||||
src/common/latex.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -68,8 +61,7 @@ stdenv.mkDerivation rec {
|
||||||
] ++ optionals enableJingle [ farstream gst_plugins_bad libnice ]
|
] ++ optionals enableJingle [ farstream gst_plugins_bad libnice ]
|
||||||
++ optional enableE2E pythonPackages.pycrypto
|
++ optional enableE2E pythonPackages.pycrypto
|
||||||
++ optional enableRST pythonPackages.docutils
|
++ optional enableRST pythonPackages.docutils
|
||||||
++ optional enableNotifications pythonPackages.notify
|
++ optional enableNotifications pythonPackages.notify;
|
||||||
++ optional enableLaTeX texLive;
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -m 644 -t "$out/share/gajim/icons/hicolor" \
|
install -m 644 -t "$out/share/gajim/icons/hicolor" \
|
||||||
|
|
Loading…
Reference in New Issue