Files
nixpkgs/pkgs/desktops/gnome/extensions/unite/default.nix
2026-07-21 13:20:46 +02:00

51 lines
1.3 KiB
Nix

{
lib,
stdenvNoCC,
gnome-shell,
fetchFromGitHub,
xprop,
glib,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "gnome-shell-extension-unite";
version = "85";
src = fetchFromGitHub {
owner = "hardpixel";
repo = "unite-shell";
tag = "v${finalAttrs.version}";
hash = "sha256-SN5DYyyZux3jeGgrOc/fd9QcjPRReb2rVZk987saXmQ=";
};
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 = {
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 = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ rhoriguchi ];
homepage = "https://github.com/hardpixel/unite-shell";
broken = lib.versionOlder gnome-shell.version "3.32";
};
})