forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 21 additions & 18 deletions
39
pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
''; | ||
|
||
} |