forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
72 lines
1.6 KiB
Nix
72 lines
1.6 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, ninja
|
|
, jq
|
|
, python3
|
|
, gnome3
|
|
, wrapGAppsHook
|
|
, gobject-introspection
|
|
}:
|
|
|
|
let
|
|
inherit (python3.pkgs) python pygobject3 requests;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "chrome-gnome-shell";
|
|
version = "10.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/chrome-gnome-shell/${version}/${pname}-${version}.tar.xz";
|
|
sha256 = "0f54xyamm383ypbh0ndkza0pif6ljddg2f947p265fkqj3p4zban";
|
|
};
|
|
|
|
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"
|
|
];
|
|
|
|
# cmake setup hook changes /etc/opt into /var/empty
|
|
dontFixCmake = true;
|
|
|
|
preConfigure = ''
|
|
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = "chrome-gnome-shell";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|