40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenv, gnome3, fetchFromGitHub, xprop, glib, coreutils }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-shell-extension-unite";
|
|
version = "45";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hardpixel";
|
|
repo = "unite-shell";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ghmCnzlPvxHEy2ro1AL+T2yiavJVrPhRfIKbMBwMjac=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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";
|
|
};
|
|
}
|