@@ -1,29 +1,56 @@
1−{stdenv, fetchurl, cmake, ninja, jq, python3, gnome3, wrapGAppsHook}:
1+{ stdenv
2+, fetchurl
3+, cmake
4+, ninja
5+, jq
6+, python3
7+, gnome3
8+, wrapGAppsHook
9+, gobject-introspection
10+}:
211
312let
4− version = "10.1";
5−
613 inherit (python3.pkgs) python pygobject3 requests;
7−in stdenv.mkDerivation rec {
14+in
15+stdenv.mkDerivation rec {
816 pname = "chrome-gnome-shell";
9− inherit version;
17+ version = "10.1";
1018
1119 src = fetchurl {
1220 url = "mirror://gnome/sources/chrome-gnome-shell/${version}/${pname}-${version}.tar.xz";
1321 sha256 = "0f54xyamm383ypbh0ndkza0pif6ljddg2f947p265fkqj3p4zban";
1422 };
1523
16− nativeBuildInputs = [ cmake ninja jq wrapGAppsHook ];
17− buildInputs = [ gnome3.gnome-shell python pygobject3 requests ];
24+ nativeBuildInputs = [
25+ cmake
26+ ninja
27+ jq
28+ wrapGAppsHook
29+ gobject-introspection # for setup-hook
30+ ];
31+
32+ buildInputs = [
33+ gnome3.gnome-shell
34+ python
35+ pygobject3
36+ requests
37+ gobject-introspection # for Gio typelib
38+ ];
39+
40+ cmakeFlags = [
41+ "-DBUILD_EXTENSION=OFF"
42+ ];
43+
44+ wrapPrefixVariables = [
45+ "PYTHONPATH"
46+ ];
1847
19− preConfigure = ''
20− substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
21− '';
2248 # cmake setup hook changes /etc/opt into /var/empty
2349 dontFixCmake = true;
2450
25− cmakeFlags = [ "-DBUILD_EXTENSION=OFF" ];
26− wrapPrefixVariables = [ "PYTHONPATH" ];
51+ preConfigure = ''
52+ substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
53+ '';
2754
2855 passthru = {
2956 updateScript = gnome3.updateScript {