git.iko.soy/typeable/nixpkgs
on master help sign in
chrome-gnome-shell: clean up

* format with nixpkgs-fmt * reorder attributes * inline version

commitc8683da483b4595976c40b2e4e79a5ea13ee4994 authorJan Tojnar <jtojnar@gmail.com> dateWed 13 May 2020, 16:45 (7 years ago) parent683c682
1 file changed+36−12
pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix+36−12
pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix+36−12
@@ -1,29 +1,53 @@
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+}:
210
311let
4− version = "10.1";
5−
612 inherit (python3.pkgs) python pygobject3 requests;
7−in stdenv.mkDerivation rec {
13+in
14+stdenv.mkDerivation rec {
815 pname = "chrome-gnome-shell";
9− inherit version;
16+ version = "10.1";
1017
1118 src = fetchurl {
1219 url = "mirror://gnome/sources/chrome-gnome-shell/${version}/${pname}-${version}.tar.xz";
1320 sha256 = "0f54xyamm383ypbh0ndkza0pif6ljddg2f947p265fkqj3p4zban";
1421 };
1522
16− nativeBuildInputs = [ cmake ninja jq wrapGAppsHook ];
17− buildInputs = [ gnome3.gnome-shell python pygobject3 requests ];
23+ nativeBuildInputs = [
24+ cmake
25+ ninja
26+ jq
27+ wrapGAppsHook
28+ ];
29+
30+ buildInputs = [
31+ gnome3.gnome-shell
32+ python
33+ pygobject3
34+ requests
35+ ];
36+
37+ cmakeFlags = [
38+ "-DBUILD_EXTENSION=OFF"
39+ ];
40+
41+ wrapPrefixVariables = [
42+ "PYTHONPATH"
43+ ];
1844
19− preConfigure = ''
20− substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
21− '';
2245 # cmake setup hook changes /etc/opt into /var/empty
2346 dontFixCmake = true;
2447
25− cmakeFlags = [ "-DBUILD_EXTENSION=OFF" ];
26− wrapPrefixVariables = [ "PYTHONPATH" ];
48+ preConfigure = ''
49+ substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
50+ '';
2751
2852 passthru = {
2953 updateScript = gnome3.updateScript {