slack-dark: Fix 4.0.0
This commit is contained in:
parent
0aa30f5901
commit
3c65adaa75
@ -1,7 +1,7 @@
|
|||||||
{ theme ? null, stdenv, fetchurl, dpkg, makeWrapper , alsaLib, atk, cairo,
|
{ theme ? null, stdenv, fetchurl, dpkg, makeWrapper , alsaLib, atk, cairo,
|
||||||
cups, curl, dbus, expat, fontconfig, freetype, glib , gnome2, gtk3, gdk_pixbuf,
|
cups, curl, dbus, expat, fontconfig, freetype, glib , gnome2, gtk3, gdk_pixbuf,
|
||||||
libappindicator-gtk3, libnotify, libxcb, nspr, nss, pango , systemd, xorg,
|
libappindicator-gtk3, libnotify, libxcb, nspr, nss, pango , systemd, xorg,
|
||||||
at-spi2-atk, libuuid
|
at-spi2-atk, libuuid, nodePackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -66,7 +66,7 @@ in stdenv.mkDerivation {
|
|||||||
gtk3 # needed for GSETTINGS_SCHEMAS_PATH
|
gtk3 # needed for GSETTINGS_SCHEMAS_PATH
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper nodePackages.asar ];
|
||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
@ -93,18 +93,20 @@ in stdenv.mkDerivation {
|
|||||||
--replace /usr/bin/ $out/bin/ \
|
--replace /usr/bin/ $out/bin/ \
|
||||||
--replace /usr/share/ $out/share/
|
--replace /usr/share/ $out/share/
|
||||||
'' + stdenv.lib.optionalString (theme != null) ''
|
'' + stdenv.lib.optionalString (theme != null) ''
|
||||||
cat <<EOF >> $out/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js
|
asar extract $out/lib/slack/resources/app.asar $out/lib/slack/resources/app.asar.unpacked
|
||||||
|
cat <<EOF >> $out/lib/slack/resources/app.asar.unpacked/dist/ssb-interop.bundle.js
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
let tt__customCss = ".menu ul li a:not(.inline_menu_link) {color: #fff !important;}"
|
|
||||||
fs.readFile('${theme}/theme.css', 'utf8', function(err, css) {
|
fs.readFile('${theme}/theme.css', 'utf8', function(err, css) {
|
||||||
\$("<style></style>").appendTo('head').html(css + tt__customCss);
|
let s = document.createElement('style');
|
||||||
\$("<style></style>").appendTo('head').html('#reply_container.upload_in_threads .inline_message_input_container {background: padding-box #545454}');
|
s.type = 'text/css';
|
||||||
\$("<style></style>").appendTo('head').html('.p-channel_sidebar {background: #363636 !important}');
|
s.innerHTML = css;
|
||||||
\$("<style></style>").appendTo('head').html('#client_body:not(.onboarding):not(.feature_global_nav_layout):before {background: inherit;}');
|
document.head.appendChild(s);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
EOF
|
EOF
|
||||||
|
asar pack $out/lib/slack/resources/app.asar.unpacked $out/lib/slack/resources/app.asar
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user