2021-05-07 22:18:14 +01:00
|
|
|
{ lib, stdenv, gnome, fetchFromGitHub, xprop, glib }:
|
2021-04-20 19:22:12 +01:00
|
|
|
|
2021-01-08 09:31:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-01-19 12:49:24 +00:00
|
|
|
pname = "gnome-shell-extension-unite";
|
2021-05-24 09:50:05 +01:00
|
|
|
version = "54";
|
2021-01-08 09:31:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hardpixel";
|
|
|
|
repo = "unite-shell";
|
|
|
|
rev = "v${version}";
|
2021-05-24 09:50:05 +01:00
|
|
|
sha256 = "sha256-Ys2kWPj/FugW/LkvLAZdbj7Ufg/KShC+EX6QrjKNVH8=";
|
2021-01-08 09:31:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
uuid = "unite@hardpixel.eu";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ glib ];
|
|
|
|
|
|
|
|
buildInputs = [ xprop ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
glib-compile-schemas --strict --targetdir=${uuid}/schemas/ ${uuid}/schemas
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/gnome-shell/extensions
|
|
|
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
meta = with lib; {
|
2021-01-08 09:31:21 +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-07 22:18:14 +01:00
|
|
|
broken = versionOlder gnome.gnome-shell.version "3.32";
|
2021-01-08 09:31:21 +00:00
|
|
|
};
|
|
|
|
}
|