gnome-shell-extension-desktop-cube: remove package

Similar to burn-my-windows, it is up-to-date in the nixpkgs repo so it
is unnecessary.
This commit is contained in:
Gabriel Arazas 2022-04-15 20:57:14 +08:00
parent 1639f920c9
commit c0969ee5c7
3 changed files with 1 additions and 53 deletions

View File

@ -92,6 +92,7 @@ in
gnomeExtensions.arcmenu
gnomeExtensions.appindicator
gnomeExtensions.burn-my-windows
gnomeExtensions.desktop-cube
gnomeExtensions.gsconnect
gnomeExtensions.x11-gestures
gnomeExtensions.kimpanel
@ -102,9 +103,6 @@ in
# TODO: Use from nixpkgs once fly-pie is fixed.
gnome-shell-extension-fly-pie
# TODO: Also these two...
gnome-shell-extension-desktop-cube
# GNOME search providers.
gnome-search-provider-recoll
];

View File

@ -20,8 +20,6 @@ let
gnome-search-provider-recoll =
callPackage ./gnome-search-provider-recoll.nix { };
gnome-extension-manager = callPackage ./gnome-extension-manager.nix { };
gnome-shell-extension-desktop-cube =
callPackage ./gnome-shell-extension-desktop-cube.nix { };
gnome-shell-extension-fly-pie =
callPackage ./gnome-shell-extension-fly-pie.nix { };
gnome-shell-extension-pop-shell =

View File

@ -1,48 +0,0 @@
{ lib, stdenv, bash, fetchFromGitHub, glib, gettext, zip, unzip }:
# TODO: Deprecate this package once it is successfully packaged in nixpkgs.
stdenv.mkDerivation rec {
pname = "gnome-shell-extension-desktop-cube";
version = "9";
src = fetchFromGitHub {
owner = "Schneegans";
repo = "Desktop-Cube";
rev = "v${version}";
sha256 = "sha256-HpOZrwFBzHFfIpPbdEQOi7YF+Paz4SWyQtkU3I73K1I=";
};
nativeBuildInputs = [ glib gettext ];
buildInputs = [ zip ];
skipConfigure = true;
buildPhase = ''
# This will create the necessary files to be exported.
# And we'll use the generated zip file as a foundation for the output.
make SHELL=${bash}/bin/bash ${passthru.extensionUuid}.zip
'';
installPhase = let
extensionDir =
"$out/share/gnome-shell/extensions/${passthru.extensionUuid}";
in ''
# Install the required extensions file.
mkdir -p ${extensionDir}
${unzip}/bin/unzip ${passthru.extensionUuid}.zip -d ${extensionDir}
# Install the GSchema.
install -Dm644 schemas/* -t "${
glib.makeSchemaPath "$out" "${pname}-${version}"
}"
'';
passthru.extensionUuid = "desktop-cube@schneegans.github.com";
meta = with lib; {
description =
"A GNOME shell to transition between workspaces the old-fashioned way";
license = licenses.gpl3Plus;
homepage = "https://github.com/Schneegans/Desktop-Cube";
platforms = platforms.linux;
};
}