mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
Merge pull request #87744 from jtojnar/ch-g-s
This commit is contained in:
commit
32b8ed7380
1 changed files with 39 additions and 12 deletions
|
@ -1,29 +1,56 @@
|
||||||
{stdenv, fetchurl, cmake, ninja, jq, python3, gnome3, wrapGAppsHook}:
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, cmake
|
||||||
|
, ninja
|
||||||
|
, jq
|
||||||
|
, python3
|
||||||
|
, gnome3
|
||||||
|
, wrapGAppsHook
|
||||||
|
, gobject-introspection
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "10.1";
|
|
||||||
|
|
||||||
inherit (python3.pkgs) python pygobject3 requests;
|
inherit (python3.pkgs) python pygobject3 requests;
|
||||||
in stdenv.mkDerivation rec {
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
pname = "chrome-gnome-shell";
|
pname = "chrome-gnome-shell";
|
||||||
inherit version;
|
version = "10.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/chrome-gnome-shell/${version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/chrome-gnome-shell/${version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0f54xyamm383ypbh0ndkza0pif6ljddg2f947p265fkqj3p4zban";
|
sha256 = "0f54xyamm383ypbh0ndkza0pif6ljddg2f947p265fkqj3p4zban";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ninja jq wrapGAppsHook ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ gnome3.gnome-shell python pygobject3 requests ];
|
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 = ''
|
preConfigure = ''
|
||||||
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
|
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc"
|
||||||
'';
|
'';
|
||||||
# cmake setup hook changes /etc/opt into /var/empty
|
|
||||||
dontFixCmake = true;
|
|
||||||
|
|
||||||
cmakeFlags = [ "-DBUILD_EXTENSION=OFF" ];
|
|
||||||
wrapPrefixVariables = [ "PYTHONPATH" ];
|
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = gnome3.updateScript {
|
updateScript = gnome3.updateScript {
|
||||||
|
|
Loading…
Reference in a new issue