From fb18f32e5a3a80e809e369ec148b5a8a87d10c86 Mon Sep 17 00:00:00 2001 From: Alex Griffin Date: Wed, 19 Feb 2020 15:46:55 -0600 Subject: gnu: Add gnome-shell-extension-paperwm. * gnu/packages/gnome-xyz.scm (gnome-shell-extension-paperwm): New variable. --- gnu/packages/gnome-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/gnome-xyz.scm') diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index 7f375fefc5..06af41aea6 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2019 Leo Prikler ;;; Copyright © 2019 Alexandros Theodotou ;;; Copyright © 2019 Giacomo Leidi +;;; Copyright © 2020 Alex Griffin ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,6 +22,7 @@ (define-module (gnu packages gnome-xyz) #:use-module (guix build-system trivial) #:use-module (guix build-system gnu) + #:use-module (guix build-system copy) #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) @@ -304,6 +306,32 @@ It uses ES6 syntax and claims to be more actively maintained than others.") (home-page "https://extensions.gnome.org/extension/2182/noannoyance/") (license license:gpl2))) +(define-public gnome-shell-extension-paperwm + (package + (name "gnome-shell-extension-paperwm") + (version "34.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/paperwm/PaperWM.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1qry75f696pgmd9yzqvwhq5h6cipin2fvk7h881g29cjcpxim37a")))) + (build-system copy-build-system) + (arguments + '(#:install-plan + '(("." "share/gnome-shell/extensions/paperwm@hedning:matrix.org" + #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" + "\\.xml$" "\\.compiled$"))))) + (home-page "https://github.com/paperwm/PaperWM") + (synopsis "Tiled scrollable window management for GNOME Shell") + (description "PaperWM is an experimental GNOME Shell extension providing +scrollable tiling of windows and per monitor workspaces. It's inspired by paper +notebooks and tiling window managers.") + (license license:gpl3))) + (define-public numix-theme (package (name "numix-theme") -- cgit v1.2.3 From 60d5ad8087161451a009d742c8a2980bebda7e38 Mon Sep 17 00:00:00 2001 From: Jack Hill Date: Fri, 21 Feb 2020 08:20:58 -0600 Subject: gnu: gnome-shell-extension-paperwm: Recompile schemas. * gnu/packages/gnome-xyz.scm (gnome-shell-extension-paperwm) [source]: Remove gschemas.compiled in a snippet. [arguments]: Add compile-schemas phase. [native-inputs]: Add glib. Signed-off-by: Alex Griffin --- gnu/packages/gnome-xyz.scm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'gnu/packages/gnome-xyz.scm') diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index 06af41aea6..34c331d195 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2019 Alexandros Theodotou ;;; Copyright © 2019 Giacomo Leidi ;;; Copyright © 2020 Alex Griffin +;;; Copyright © 2020 Jack Hill ;;; ;;; This file is part of GNU Guix. ;;; @@ -318,13 +319,23 @@ It uses ES6 syntax and claims to be more actively maintained than others.") (file-name (git-file-name name version)) (sha256 (base32 - "1qry75f696pgmd9yzqvwhq5h6cipin2fvk7h881g29cjcpxim37a")))) + "1qry75f696pgmd9yzqvwhq5h6cipin2fvk7h881g29cjcpxim37a")) + (snippet + '(begin (delete-file "schemas/gschemas.compiled"))))) (build-system copy-build-system) (arguments '(#:install-plan '(("." "share/gnome-shell/extensions/paperwm@hedning:matrix.org" - #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" - "\\.xml$" "\\.compiled$"))))) + #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" "\\.xml$"))) + #:phases + (modify-phases %standard-phases + (add-before 'install 'compile-schemas + (lambda _ + (with-directory-excursion "schemas" + (invoke "make")) + #t))))) + (native-inputs + `(("glib:bin" ,glib "bin"))) ; for glib-compile-schemas (home-page "https://github.com/paperwm/PaperWM") (synopsis "Tiled scrollable window management for GNOME Shell") (description "PaperWM is an experimental GNOME Shell extension providing -- cgit v1.2.3 From fd62167464a2c0276870596b36b9ba5caa4e8d5f Mon Sep 17 00:00:00 2001 From: Jack Hill Date: Fri, 21 Feb 2020 12:45:32 -0600 Subject: gnu: gnome-shell-extension-paperwm: Install compiled gschemas. * gnu/packages/gnome-xyz.scm (gnome-shell-extension-paperwm)[arguments]: Install compiled gschemas. Signed-off-by: Alex Griffin --- gnu/packages/gnome-xyz.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnu/packages/gnome-xyz.scm') diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index 34c331d195..cd334abb53 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -326,7 +326,8 @@ It uses ES6 syntax and claims to be more actively maintained than others.") (arguments '(#:install-plan '(("." "share/gnome-shell/extensions/paperwm@hedning:matrix.org" - #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" "\\.xml$"))) + #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" + "\\.xml$" "\\.compiled$"))) #:phases (modify-phases %standard-phases (add-before 'install 'compile-schemas -- cgit v1.2.3