all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: 路辉 <luhux76@gmail.com>
To: 54477@debbugs.gnu.org
Subject: [bug#54477] [PATCH] gnu: Add sbase.
Date: Sun, 20 Mar 2022 14:49:48 +0000	[thread overview]
Message-ID: <CAGNyvejNNZNMW8gwRvyGuwU6p-P7HYNF1rHcV=ghPiG4va+YMQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-gnu-Add-sbase.patch --]
[-- Type: text/x-patch, Size: 2662 bytes --]

From 9f3ff0979c033b85a3d82baf79f294cac7cf3a4d Mon Sep 17 00:00:00 2001
From: Lu Hui <luhux76@gmail.com>
Date: Sun, 20 Mar 2022 22:45:53 +0800
Subject: [PATCH] gnu: Add sbase.

* gnu/packages/suckless.scm (sbase): New Variables.
---
 gnu/packages/suckless.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index 5aa37657b9..c367cc8f91 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -12,6 +12,7 @@
 ;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
 ;;; Copyright © 2021 Nikolay Korotkiy <sikmir@disroot.org>
 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
+;;; Copyright © 2022 Lu Hui <luhux76@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1084,3 +1085,41 @@ (define-public sfeed
 various other formats.  There are also some programs and scripts included to
 import and export OPML and to fetch, filter, merge and order feed items.")
     (license license:isc)))
+
+(define-public sbase
+  (let ((commit "2c2a7f54ab55a022a617e510b6e00c3e2736fabd") (revision "0"))
+    (package
+      (name "sbase")
+      (version (git-version "20190904" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://git.suckless.org/sbase/")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "119v1lpgsx8bx9h57wg454ddhzz2awqavl3wrn35a704vifg28g0"))))
+      (build-system gnu-build-system)
+      (arguments
+       (list #:tests?
+             #f ;no check target
+             #:make-flags
+             #~(list (string-append "CC="
+                                    #$(cc-for-target))
+                     (string-append "PREFIX="
+                                    #$output))
+             #:phases
+             '(modify-phases %standard-phases
+                (replace 'install
+                  (lambda* (#:key outputs #:allow-other-keys)
+                    (let ((out (assoc-ref outputs "out")))
+                      (invoke "make" "install"
+                              (string-append "DESTDIR=" out) "PREFIX="))))
+                (delete 'configure)))) ;no configure script
+      (home-page "https://git.suckless.org/sbase/file/README.html")
+      (synopsis "Suckless unix tools set")
+      (description
+       "sbase is a collection of unix tools that are inherently portable
+across UNIX and UNIX-like systems.")
+      (license license:x11))))
-- 
2.34.0


             reply	other threads:[~2022-03-20 14:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-20 14:49 路辉 [this message]
2022-03-20 15:19 ` bug#54477: [PATCH] gnu: Add sbase Maxime Devos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGNyvejNNZNMW8gwRvyGuwU6p-P7HYNF1rHcV=ghPiG4va+YMQ@mail.gmail.com' \
    --to=luhux76@gmail.com \
    --cc=54477@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.