Skip to content

Commit

Permalink
chrome-gnome-shell in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
roastiek committed Nov 12, 2017
1 parent 8fab6c9 commit 41aeb85
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
2 changes: 2 additions & 0 deletions pkgs/applications/networking/browsers/firefox/wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
, vlc_npapi
, libudev
, kerberos
, chrome-gnome-shell
}:

## configurability of the wrapper itself
Expand Down Expand Up @@ -49,6 +50,7 @@ let
);
nativeMessagingHosts =
([ ]
++ lib.optional (cfg.enableGnomeExtensions or false) chrome-gnome-shell
);
libs = (if ffmpegSupport then [ ffmpeg ] else with gst_all; [ gstreamer gst-plugins-base ])
++ lib.optional gssSupport kerberos
Expand Down
39 changes: 21 additions & 18 deletions pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
{stdenv, lib, python, dbus, fetchgit, cmake, coreutils, jq, gobjectIntrospection, python27Packages, makeWrapper, gnome3, wrapGAppsHook}:
{stdenv, lib, python, dbus, fetchFromGitHub, cmake, coreutils, jq
, gobjectIntrospection, python27Packages, makeWrapper, gnome3
, wrapGAppsHook, p7zip }:

stdenv.mkDerivation rec {
name="chrome-gnome-shell";
src = fetchgit {
url = "git://git.gnome.org/chrome-gnome-shell";
rev = "7d99523e90805cb65027cc2f5f1191a957dcf276";
sha256 = "0qc34dbhsz5yf4z5bx6py08h561rcxw9928drgk9256g3vnygnbc";
name="chrome-gnome-shell-${version}";
version = "9";

src = fetchFromGitHub {
owner = "GNOME";
repo = "chrome-gnome-shell";
rev = "v${version}";
sha256 = "1q4y53s2gnwrq5rx1gfwyh8jsc56y3wbxgbk4mjbnghyi3szc0hr";
};

buildInputs = [ gnome3.gnome_shell makeWrapper jq dbus gobjectIntrospection
python python27Packages.requests python27Packages.pygobject3 wrapGAppsHook];
buildInputs = [ gnome3.gnome_shell makeWrapper jq dbus gobjectIntrospection
python27Packages.python python27Packages.requests python27Packages.pygobject3 wrapGAppsHook];

preConfigure = ''
mkdir build usr etc
cd build
${cmake}/bin/cmake -DCMAKE_INSTALL_PREFIX=$out/usr -DBUILD_EXTENSION=OFF ../
substituteInPlace cmake_install.cmake --replace "/etc" "$out/etc"
'';
preConfigure = ''
mkdir build usr etc
cd build
${cmake}/bin/cmake -DCMAKE_INSTALL_PREFIX=$out -DBUILD_EXTENSION=OFF ../
substituteInPlace cmake_install.cmake --replace "/etc" "$out/etc"
'';

postInstall = ''
postInstall = ''
rm $out/etc/opt/chrome/policies/managed/chrome-gnome-shell.json
rm $out/etc/chromium/policies/managed/chrome-gnome-shell.json
wrapProgram $out/usr/bin/chrome-gnome-shell \
wrapProgram $out/bin/chrome-gnome-shell \
--prefix PATH : '"${dbus}/bin"' \
--prefix PATH : '"${gnome3.gnome_shell}/bin"' \
--prefix PYTHONPATH : "$PYTHONPATH"
'';

}

0 comments on commit 41aeb85

Please sign in to comment.