2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-05-15 21:57:56 +00:00
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, ninja
|
|
|
|
, jq
|
|
|
|
, python3
|
|
|
|
, gnome3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gobject-introspection
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (python3.pkgs) python pygobject3 requests;
|
2020-05-15 21:57:56 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "chrome-gnome-shell";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "10.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/chrome-gnome-shell/${version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0f54xyamm383ypbh0ndkza0pif6ljddg2f947p265fkqj3p4zban";
|
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
jq
|
|
|
|
wrapGAppsHook
|
|
|
|
gobject-introspection # for setup-hook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnome3.gnome-shell
|
|
|
|
python
|
|
|
|
pygobject3
|
|
|
|
requests
|
|
|
|
gobject-introspection # for Gio typelib
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_EXTENSION=OFF"
|
|
|
|
];
|
|
|
|
|
|
|
|
wrapPrefixVariables = [
|
|
|
|
"PYTHONPATH"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# cmake setup hook changes /etc/opt into /var/empty
|
|
|
|
dontFixCmake = true;
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "chrome-gnome-shell";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|