diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-05-13 16:45:55 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-05-13 16:45:55 +0200 |
commit | c8683da483b4595976c40b2e4e79a5ea13ee4994 (patch) | |
tree | ac74d6a3fbbf02a7fb5a5c7844d04fc1b8ce04aa /pkgs/desktops/gnome-3 | |
parent | 683c68232e91f76386db979c461d8fbe2a018782 (diff) | |
download | nixlib-c8683da483b4595976c40b2e4e79a5ea13ee4994.tar nixlib-c8683da483b4595976c40b2e4e79a5ea13ee4994.tar.gz nixlib-c8683da483b4595976c40b2e4e79a5ea13ee4994.tar.bz2 nixlib-c8683da483b4595976c40b2e4e79a5ea13ee4994.tar.lz nixlib-c8683da483b4595976c40b2e4e79a5ea13ee4994.tar.xz nixlib-c8683da483b4595976c40b2e4e79a5ea13ee4994.tar.zst nixlib-c8683da483b4595976c40b2e4e79a5ea13ee4994.zip |
chrome-gnome-shell: clean up
* format with nixpkgs-fmt * reorder attributes * inline version
Diffstat (limited to 'pkgs/desktops/gnome-3')
-rw-r--r-- | pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix b/pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix index 1e3815705cd3..ee0bb82b284a 100644 --- a/pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix +++ b/pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix @@ -1,29 +1,53 @@ -{stdenv, fetchurl, cmake, ninja, jq, python3, gnome3, wrapGAppsHook}: +{ stdenv +, fetchurl +, cmake +, ninja +, jq +, python3 +, gnome3 +, wrapGAppsHook +}: let - version = "10.1"; - inherit (python3.pkgs) python pygobject3 requests; -in stdenv.mkDerivation rec { +in +stdenv.mkDerivation rec { pname = "chrome-gnome-shell"; - inherit version; + version = "10.1"; 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 ]; + nativeBuildInputs = [ + cmake + ninja + jq + wrapGAppsHook + ]; + + buildInputs = [ + gnome3.gnome-shell + python + pygobject3 + requests + ]; + + cmakeFlags = [ + "-DBUILD_EXTENSION=OFF" + ]; + + wrapPrefixVariables = [ + "PYTHONPATH" + ]; - 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" ]; + preConfigure = '' + substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc" + ''; passthru = { updateScript = gnome3.updateScript { |