Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 50 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 gnome-shell, 5 fetchFromGitHub, 6 xprop, 7 glib, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "gnome-shell-extension-unite"; 12 version = "82"; 13 14 src = fetchFromGitHub { 15 owner = "hardpixel"; 16 repo = "unite-shell"; 17 rev = "v${version}"; 18 hash = "sha256-Ceo0HQupiihD6GW6/PUbjuArOXtPtAmUPxmNi7DS8E0="; 19 }; 20 21 passthru = { 22 extensionUuid = "unite@hardpixel.eu"; 23 extensionPortalSlug = "unite"; 24 }; 25 26 nativeBuildInputs = [ glib ]; 27 28 buildInputs = [ xprop ]; 29 30 buildPhase = '' 31 runHook preBuild 32 glib-compile-schemas --strict --targetdir="unite@hardpixel.eu/schemas/" "unite@hardpixel.eu/schemas" 33 runHook postBuild 34 ''; 35 36 installPhase = '' 37 runHook preInstall 38 mkdir -p $out/share/gnome-shell/extensions 39 cp -r "unite@hardpixel.eu" $out/share/gnome-shell/extensions 40 runHook postInstall 41 ''; 42 43 meta = with lib; { 44 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"; 45 license = licenses.gpl3Only; 46 maintainers = with maintainers; [ rhoriguchi ]; 47 homepage = "https://github.com/hardpixel/unite-shell"; 48 broken = versionOlder gnome-shell.version "3.32"; 49 }; 50}