2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, gnome, fetchFromGitHub, xprop, glib }:
|
2021-04-22 02:08:21 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "gnome-shell-extension-unite";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "55";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hardpixel";
|
|
|
|
repo = "unite-shell";
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "0bav4vzky3p7np2gphxc6bw38c697kalmaibaar9vi0ip3xkkavk";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
passthru = {
|
|
|
|
extensionUuid = "unite@hardpixel.eu";
|
|
|
|
extensionPortalSlug = "unite";
|
|
|
|
};
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ glib ];
|
|
|
|
|
|
|
|
buildInputs = [ xprop ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
2021-07-14 22:03:04 +00:00
|
|
|
glib-compile-schemas --strict --targetdir="unite@hardpixel.eu/schemas/" "unite@hardpixel.eu/schemas"
|
2021-01-15 22:18:51 +00:00
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/gnome-shell/extensions
|
2021-07-14 22:03:04 +00:00
|
|
|
cp -r "unite@hardpixel.eu" $out/share/gnome-shell/extensions
|
2021-01-15 22:18:51 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
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";
|
2021-05-20 23:08:51 +00:00
|
|
|
broken = versionOlder gnome.gnome-shell.version "3.32";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
}
|