Unverified Commit 96482988 authored by piegames's avatar piegames Committed by GitHub
Browse files

Merge pull request #270321: gnomeExtensions.unite: 72 -> 77

parents 99faeebe 8f54001d
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@
, vte
, wrapGAppsHook
, xdg-utils
, xprop
}:
let
  # Helper method to reduce redundancy
@@ -137,12 +136,6 @@ super: lib.trivial.pipe super [
    ];
  }))

  (patchExtension "unite@hardpixel.eu" (old: {
    buildInputs = [ xprop ];

    meta.maintainers = with lib.maintainers; [ rhoriguchi ];
  }))

  (patchExtension "x11gestures@joseexposito.github.io" (old: {
    # Extension can't find Touchegg
    # https://github.com/NixOS/nixpkgs/issues/137621
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@
  "taskwhisperer-extension@infinicode.de" = callPackage ./taskwhisperer { };
  "tilingnome@rliang.github.com" = callPackage ./tilingnome { };
  "TopIcons@phocean.net" = callPackage ./topicons-plus { };
  # Can be removed when https://github.com/hardpixel/unite-shell/issues/353 resolved
  "unite@hardpixel.eu" = callPackage ./unite { };
  "valent@andyholmes.ca" = callPackage ./valent { };
  "window-corner-preview@fabiomereu.it" = callPackage ./window-corner-preview { };
}
+43 −0
Original line number Diff line number Diff line
{ lib, stdenv, gnome, fetchFromGitHub, xprop, glib }:

stdenv.mkDerivation rec {
  pname = "gnome-shell-extension-unite";
  version = "77";

  src = fetchFromGitHub {
    owner = "hardpixel";
    repo = "unite-shell";
    rev = "v${version}";
    hash = "sha256-5PClGWOxqwTVaqBySu5I+qavaV1vcKHUvoYJ3Qgcq2o=";
  };

  passthru = {
    extensionUuid = "unite@hardpixel.eu";
    extensionPortalSlug = "unite";
  };

  nativeBuildInputs = [ glib ];

  buildInputs = [ xprop ];

  buildPhase = ''
    runHook preBuild
    glib-compile-schemas --strict --targetdir="unite@hardpixel.eu/schemas/" "unite@hardpixel.eu/schemas"
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/share/gnome-shell/extensions
    cp -r "unite@hardpixel.eu" $out/share/gnome-shell/extensions
    runHook postInstall
  '';

  meta = with lib; {
    description = "Unite is a GNOME Shell extension which makes a few layout tweaks to the top panel and removes window decorations to make it look like Ubuntu Unity Shell";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ rhoriguchi ];
    homepage = "https://github.com/hardpixel/unite-shell";
    broken = versionOlder gnome.gnome-shell.version "3.32";
  };
}