Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnomeExtensions.guillotine: package manually #322835

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8263,6 +8263,13 @@
githubId = 6109326;
name = "David Hummel";
};
husky = {
email = "[email protected]";
github = "huskyistaken";
githubId = 20684258;
name = "Luna Perego";
keys = [ { fingerprint = "09E4 B981 9B93 5B0C 0B91 1274 0578 7332 9217 08FF"; } ];
};
huyngo = {
email = "[email protected]";
github = "Huy-Ngo";
Expand Down
55 changes: 55 additions & 0 deletions pkgs/desktops/gnome/extensions/guillotine/default.nix
doronbehar marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
stdenv,
lib,
fetchFromGitLab,
glib,
}:
# We package this manually because upstream stopped updating the package to
# extensions.gnome.org. See:
# https://gitlab.com/ente76/guillotine/-/issues/17
stdenv.mkDerivation (finalAttrs: {
huskyistaken marked this conversation as resolved.
Show resolved Hide resolved
pname = "gnome-shell-extension-guillotine";
version = "24";

src = fetchFromGitLab {
owner = "ente76";
repo = "guillotine";
rev = "v${finalAttrs.version}";
hash = "sha256-eNhK3h9luPGXHR3lPkfu/mUN9+ixma64rbCk0cjF4Fc=";
};

nativeBuildInputs = [ glib ];

passthru = {
extensionUuid = "[email protected]";
extensionPortalSlug = "guillotine";
};

buildPhase = ''
runHook preBuild
rm schemas/gschemas.compiled
glib-compile-schemas schemas
runHook postBuild
'';

installPhase = ''
runHook preInstall
mkdir -p $out/share/gnome-shell/extensions/[email protected]
cp -R schemas "$out/share/gnome-shell/extensions/[email protected]"
doronbehar marked this conversation as resolved.
Show resolved Hide resolved
cp default.json $out/share/gnome-shell/extensions/[email protected]
cp extension.js "$out/share/gnome-shell/extensions/[email protected]"
cp guillotine-symbolic.svg "$out/share/gnome-shell/extensions/[email protected]"
cp LICENSE "$out/share/gnome-shell/extensions/[email protected]"
cp metadata.json "$out/share/gnome-shell/extensions/[email protected]"
cp README.md "$out/share/gnome-shell/extensions/[email protected]"
runHook postInstall
'';

meta = {
description = "A gnome extension designed for efficiently carrying out executions of commands from a customizable menu";
homepage = "https://gitlab.com/ente76/guillotine/";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ husky ];
platforms = lib.platforms.linux;
};
})
1 change: 1 addition & 0 deletions pkgs/desktops/gnome/extensions/manuallyPackaged.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"[email protected]" = callPackage ./drop-down-terminal { };
"[email protected]" = callPackage ./EasyScreenCast { };
"[email protected]" = callPackage ./gsconnect { };
"[email protected]" = callPackage ./guillotine { };
"[email protected]" = callPackage ./impatience { };
"[email protected]" = callPackage ./no-title-bar { };
"pidgin@muffinmad" = callPackage ./pidgin-im-integration { };
Expand Down