1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 00:22:13 +00:00

chrome-gnome-shell: clean up

* format with nixpkgs-fmt
* reorder attributes
* inline version
This commit is contained in:
Jan Tojnar 2020-05-13 16:45:55 +02:00
parent 683c68232e
commit c8683da483
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -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"
];
# cmake setup hook changes /etc/opt into /var/empty
dontFixCmake = true;
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" ];
passthru = {
updateScript = gnome3.updateScript {