Subject: [bug#59105] [PATCH 3/3] gnu: Add nemo

From: [email-masked]
Date: Sun, 13 Nov 2022 19:21:17 +0000

From: florhizome <[email-masked]>

* gnu/packages/cinnamon.scm (nemo): New variable.
---
 gnu/packages/cinnamon.scm | 61 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/gnu/packages/cinnamon.scm b/gnu/packages/cinnamon.scm
index 8af2075596..74bf125820 100644
--- a/gnu/packages/cinnamon.scm
+++ b/gnu/packages/cinnamon.scm
@@ -143,3 +143,64 @@ (define-public xapp
  projects of the Linux Mint project.")
    (license license:expat)))
 
+(define-public nemo
+  (package
+    (name "nemo")
+    (version "5.4.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/linuxmint/nemo")
+         (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1r3zjkpmisdi54kkq6fvaslagzpbbz4swjlali90lwsfbb9cwykz"))))
+    (build-system meson-build-system)
+    (arguments
+     (list #:glib-or-gtk? #t
+           #:tests? #f                       ;tests stall
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'patch-source-shebangs 'adjust-prefix
+                 (lambda _
+                   (substitute*
+                       (find-files "meson.build")
+                     (("'data_dir")
+                      (string-append "'" #$output "/share")))) #t)
+               (add-before 'check 'pre-check
+                 (lambda _
+                   (system "Xvfb :1 &")
+                   (setenv "DISPLAY" ":1")
+                   (setenv "HOME" "/tmp")    ;some tests require a writable HOME
+                   (setenv "XDG_DATA_DIRS"
+                           (string-append (getenv "XDG_DATA_DIRS")
+                                          ":" #$output "/share")))))))
+    (inputs
+     (list atk
+           cinnamon-desktop
+           libnotify
+           libgsf
+           libx11
+           libxml2
+           gtk+
+           gsettings-desktop-schemas
+           libxkbfile
+           libexif
+           exempi
+           xapp
+           xkeyboard-config))
+    (native-inputs
+     (list pkg-config
+           (list gtk+ "bin")
+           gettext-minimal
+           intltool
+           (list glib "bin")
+           gobject-introspection
+           xorg-server-for-tests))
+    (home-page "https://github.com/linuxmint/nemo")
+    (synopsis "File browser for Cinnamon")
+    (description "Nemo is the file manager for the Cinnamon desktop
+ environment.")
+    (license license:expat)))
-- 
2.38.1