coqPackages.ExtLib: 0.12.2 → 0.13.0
[NixPkgs.git] / pkgs / desktops / gnome / extensions / guillotine / default.nix
blob947317b1fe93ac1343d57ddd156c634c88239bd7
2   stdenv,
3   lib,
4   fetchFromGitLab,
5   glib,
6 }:
7 # We package this manually because upstream stopped updating the package to
8 # extensions.gnome.org. See:
9 # https://gitlab.com/ente76/guillotine/-/issues/17
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "gnome-shell-extension-guillotine";
12   version = "24";
14   src = fetchFromGitLab {
15     owner = "ente76";
16     repo = "guillotine";
17     rev = "v${finalAttrs.version}";
18     hash = "sha256-eNhK3h9luPGXHR3lPkfu/mUN9+ixma64rbCk0cjF4Fc=";
19   };
21   nativeBuildInputs = [ glib ];
23   passthru = {
24     extensionUuid = "guillotine@fopdoodle.net";
25     extensionPortalSlug = "guillotine";
26   };
28   buildPhase = ''
29     runHook preBuild
30     rm schemas/gschemas.compiled
31     glib-compile-schemas schemas
32     runHook postBuild
33   '';
35   installPhase = ''
36     runHook preInstall
37     mkdir -p $out/share/gnome-shell/extensions/guillotine@fopdoodle.net
38     cp -R schemas "$out/share/gnome-shell/extensions/guillotine@fopdoodle.net"
39     cp default.json $out/share/gnome-shell/extensions/guillotine@fopdoodle.net
40     cp extension.js "$out/share/gnome-shell/extensions/guillotine@fopdoodle.net"
41     cp guillotine-symbolic.svg "$out/share/gnome-shell/extensions/guillotine@fopdoodle.net"
42     cp LICENSE "$out/share/gnome-shell/extensions/guillotine@fopdoodle.net"
43     cp metadata.json "$out/share/gnome-shell/extensions/guillotine@fopdoodle.net"
44     cp README.md "$out/share/gnome-shell/extensions/guillotine@fopdoodle.net"
45     runHook postInstall
46   '';
48   meta = {
49     description = "A gnome extension designed for efficiently carrying out executions of commands from a customizable menu";
50     homepage = "https://gitlab.com/ente76/guillotine/";
51     license = lib.licenses.gpl3Plus;
52     maintainers = with lib.maintainers; [ husky ];
53     platforms = lib.platforms.linux;
54   };