blob: 1e3815705cd383ad3a151b92421200ad8f9d6f11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{stdenv, fetchurl, cmake, ninja, jq, python3, gnome3, wrapGAppsHook}:
let
version = "10.1";
inherit (python3.pkgs) python pygobject3 requests;
in stdenv.mkDerivation rec {
pname = "chrome-gnome-shell";
inherit version;
src = fetchurl {
url = "mirror://gnome/sources/chrome-gnome-shell/${version}/${pname}-${version}.tar.xz";
sha256 = "0f54xyamm383ypbh0ndkza0pif6ljddg2f947p265fkqj3p4zban";
};
nativeBuildInputs = [ cmake ninja jq wrapGAppsHook ];
buildInputs = [ gnome3.gnome-shell python pygobject3 requests ];
preConfigure = ''
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
'';
# cmake setup hook changes /etc/opt into /var/empty
dontFixCmake = true;
cmakeFlags = [ "-DBUILD_EXTENSION=OFF" ];
wrapPrefixVariables = [ "PYTHONPATH" ];
passthru = {
updateScript = gnome3.updateScript {
packageName = "chrome-gnome-shell";
};
};
meta = with stdenv.lib; {
description = "GNOME Shell integration for Chrome";
homepage = "https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome";
longDescription = ''
To use the integration, install the <link xlink:href="https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome/Installation">browser extension</link>, and then set <option>services.gnome3.chrome-gnome-shell.enable</option> to <literal>true</literal>.
'';
license = licenses.gpl3;
maintainers = teams.gnome.members;
platforms = platforms.linux;
};
}
|