2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, gnome3, fetchFromGitHub, xprop, glib, coreutils }:
|
2021-01-15 22:18:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-shell-extension-unite-shell";
|
|
|
|
version = "44";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hardpixel";
|
|
|
|
repo = "unite-shell";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0nqc1q2yz4xa3fdfx45w6da1wijmdwzhdrch0mqwblgbpjr4fs9g";
|
|
|
|
};
|
|
|
|
|
|
|
|
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-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";
|
|
|
|
broken = versionOlder gnome3.gnome-shell.version "3.32";
|
|
|
|
};
|
|
|
|
}
|