mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
8f54001d9c
This reverts commit a0f20138a4
.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib, stdenv, gnome, fetchFromGitHub, xprop, glib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-shell-extension-unite";
|
|
version = "77";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hardpixel";
|
|
repo = "unite-shell";
|
|
rev = "v${version}";
|
|
hash = "sha256-5PClGWOxqwTVaqBySu5I+qavaV1vcKHUvoYJ3Qgcq2o=";
|
|
};
|
|
|
|
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 = 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 gnome.gnome-shell.version "3.32";
|
|
};
|
|
}
|