2017-09-02 01:59:29 +01:00
|
|
|
{stdenv, fetchurl, cmake, ninja, jq, python3, gnome3, wrapGAppsHook}:
|
2017-03-24 09:49:25 +00:00
|
|
|
|
2017-09-02 01:59:29 +01:00
|
|
|
let
|
2019-03-07 15:49:59 +00:00
|
|
|
version = "10.1";
|
2017-06-25 17:59:23 +01:00
|
|
|
|
2017-09-02 01:59:29 +01:00
|
|
|
inherit (python3.pkgs) python pygobject3 requests;
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "chrome-gnome-shell";
|
|
|
|
inherit version;
|
2017-03-24 09:49:25 +00:00
|
|
|
|
2017-09-02 01:59:29 +01:00
|
|
|
src = fetchurl {
|
2019-08-13 22:52:01 +01:00
|
|
|
url = "mirror://gnome/sources/chrome-gnome-shell/${version}/${pname}-${version}.tar.xz";
|
2019-03-07 15:49:59 +00:00
|
|
|
sha256 = "0f54xyamm383ypbh0ndkza0pif6ljddg2f947p265fkqj3p4zban";
|
2017-09-02 01:59:29 +01:00
|
|
|
};
|
2017-03-24 09:49:25 +00:00
|
|
|
|
2017-09-02 01:59:29 +01:00
|
|
|
nativeBuildInputs = [ cmake ninja jq wrapGAppsHook ];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ gnome3.gnome-shell python pygobject3 requests ];
|
2017-03-24 09:49:25 +00:00
|
|
|
|
2017-09-02 01:59:29 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
|
2017-03-24 09:49:25 +00:00
|
|
|
'';
|
2017-09-02 01:59:29 +01:00
|
|
|
# cmake setup hook changes /etc/opt into /var/empty
|
|
|
|
dontFixCmake = true;
|
2017-03-24 09:49:25 +00:00
|
|
|
|
2017-09-02 01:59:29 +01:00
|
|
|
cmakeFlags = [ "-DBUILD_EXTENSION=OFF" ];
|
|
|
|
wrapPrefixVariables = [ "PYTHONPATH" ];
|
|
|
|
|
2018-03-05 03:45:54 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "chrome-gnome-shell";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-09-02 01:59:29 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GNOME Shell integration for Chrome";
|
2018-03-05 03:45:54 +00:00
|
|
|
homepage = https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome;
|
2018-01-13 14:18:47 +00:00
|
|
|
longDescription = ''
|
2019-09-06 04:20:30 +01:00
|
|
|
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>.
|
2018-01-13 14:18:47 +00:00
|
|
|
'';
|
2017-09-02 01:59:29 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2017-03-24 09:49:25 +00:00
|
|
|
}
|