2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, gitUpdater
|
2022-09-22 12:36:57 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-shell-extension-paperwm";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "44.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paperwm";
|
|
|
|
repo = "PaperWM";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-oGBnQGtx2ku4cfgZkZ3OdHlVuiYR8hy1eYDWDZP3fn4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
dontConfigure = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-07-18 16:06:22 +00:00
|
|
|
runHook preInstall
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
mkdir -p "$out/share/gnome-shell/extensions/paperwm@hedning:matrix.org"
|
|
|
|
cp -r . "$out/share/gnome-shell/extensions/paperwm@hedning:matrix.org"
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
passthru.updateScript = gitUpdater { url = finalAttrs.meta.homepage; };
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/paperwm/PaperWM";
|
2022-09-22 12:36:57 +00:00
|
|
|
description = "Tiled scrollable window management for Gnome Shell";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/paperwm/PaperWM/releases/tag/${finalAttrs.src.rev}";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with lib.maintainers; [ hedning AndersonTorres cab404 ];
|
2023-05-24 13:37:59 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
passthru.extensionUuid = "paperwm@hedning:matrix.org";
|
2023-05-24 13:37:59 +00:00
|
|
|
})
|