Subject: [PATCH] gnu: Add sfm.

From: Nikolay Korotkiy <[email-masked]>
Date: Fri, 10 Dec 2021 09:47:15 +0300

* gnu/packages/suckless.scm (sfm): New variable.
---
 gnu/packages/suckless.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index efa5c023c0..2efb6e6d1e 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <[email-masked]>
 ;;; Copyright © 2021 Raghav Gururajan <[email-masked]>
 ;;; Copyright © 2021 Alexandru-Sergiu Marton <[email-masked]>
+;;; Copyright © 2021 Nikolay Korotkiy <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -963,3 +964,33 @@ (define-public scron
 Single daemon and configuration file.  Log to stdout or syslog.  No mail
 support.")
     (license license:expat)))
+
+(define-public sfm
+  (package
+    (name "sfm")
+    (version "0.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "git://git.afify.dev/sfm.git")
+         (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0g6k884mggryld0k054sjcj6kpkbca9cvr50w98klszym73yw0sp"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f                      ; no check target
+       #:make-flags
+       (list (string-append "CC=" ,(cc-for-target))
+             (string-append "PREFIX=" %output))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)))) ; no configure script
+    (synopsis "Simple file manager")
+    (home-page "https://github.com/afify/sfm")
+    (description
+     "sfm is a simple file manager for unix-like systems.")
+    (license license:isc)))
-- 
2.34.0