nixpkgs/pkgs/desktops/gnome-3/extensions/chrome-gnome-shell/default.nix

34 lines
964 B
Nix
Raw Normal View History

2017-09-02 02:59:29 +02:00
{stdenv, fetchurl, cmake, ninja, jq, python3, gnome3, wrapGAppsHook}:
2017-09-02 02:59:29 +02:00
let
version = "9";
2017-09-02 02:59:29 +02:00
inherit (python3.pkgs) python pygobject3 requests;
in stdenv.mkDerivation rec {
name = "chrome-gnome-shell-${version}";
2017-09-02 02:59:29 +02:00
src = fetchurl {
url = "mirror://gnome/sources/chrome-gnome-shell/${version}/${name}.tar.xz";
sha256 = "0j6lzlp3jvkpnkk8s99y3m14xiq94rjwjzy2pbfqgv084ahzmz8i";
};
2017-09-02 02:59:29 +02:00
nativeBuildInputs = [ cmake ninja jq wrapGAppsHook ];
buildInputs = [ gnome3.gnome_shell python pygobject3 requests ];
2017-09-02 02:59:29 +02:00
preConfigure = ''
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
'';
2017-09-02 02:59:29 +02:00
# cmake setup hook changes /etc/opt into /var/empty
dontFixCmake = true;
2017-09-02 02:59:29 +02:00
cmakeFlags = [ "-DBUILD_EXTENSION=OFF" ];
wrapPrefixVariables = [ "PYTHONPATH" ];
meta = with stdenv.lib; {
description = "GNOME Shell integration for Chrome";
license = licenses.gpl3;
maintainers = gnome3.maintainers;
platforms = platforms.linux;
};
}