2021-05-07 23:18:14 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, glib, gnome }:
|
2019-04-05 23:01:52 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-09-11 01:18:07 +02:00
|
|
|
pname = "gnome-shell-extension-tilingnome";
|
2019-09-24 00:54:22 +02:00
|
|
|
version = "unstable-2019-09-19";
|
2019-04-05 23:01:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rliang";
|
2019-09-24 00:54:22 +02:00
|
|
|
repo = "gnome-shell-extension-tilingnome";
|
|
|
|
rev = "f401c20c9721d85e6b3e30d1e822a200db370407";
|
|
|
|
sha256 = "1hq9g9bxqpzqrdj9zm0irld8r6q4w1m4b00jya7wsny8rzb1s0y2";
|
2019-04-05 23:01:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ glib ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2020-07-18 13:06:33 +02:00
|
|
|
runHook preBuild
|
2019-04-05 23:01:52 +02:00
|
|
|
glib-compile-schemas .
|
2020-07-18 13:06:33 +02:00
|
|
|
runHook postBuild
|
2019-04-05 23:01:52 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-07-18 13:06:33 +02:00
|
|
|
runHook preInstall
|
2021-05-29 21:55:35 +02:00
|
|
|
mkdir -p "$out/share/gnome-shell/extensions/tilingnome@rliang.github.com"
|
|
|
|
cp -r * "$out/share/gnome-shell/extensions/tilingnome@rliang.github.com/"
|
2020-07-18 13:06:33 +02:00
|
|
|
runHook postInstall
|
2019-04-05 23:01:52 +02:00
|
|
|
'';
|
|
|
|
|
2021-05-29 17:34:26 +02:00
|
|
|
passthru = {
|
|
|
|
extensionUuid = "tilingnome@rliang.github.com";
|
|
|
|
extensionPortalSlug = "tilingnome";
|
|
|
|
};
|
2019-04-05 23:01:52 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-04-05 23:01:52 +02:00
|
|
|
description = "Tiling window management for GNOME Shell";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ benley ];
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/rliang/gnome-shell-extension-tilingnome";
|
2021-05-07 23:18:14 +02:00
|
|
|
platforms = gnome.gnome-shell.meta.platforms;
|
2019-04-05 23:01:52 +02:00
|
|
|
};
|
|
|
|
}
|