GNU bug report logs - #78771
[PATCH] gnu: Add clac.

Previous Next

Package: guix-patches;

Reported by: Skylar Hill <stellarskylark <at> posteo.net>

Date: Thu, 12 Jun 2025 03:15:02 UTC

Severity: normal

Tags: patch

Done: Andreas Enge <andreas <at> enge.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andreas Enge <andreas <at> enge.fr>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78771: closed ([PATCH] gnu: Add clac.)
Date: Wed, 25 Jun 2025 21:10:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 25 Jun 2025 23:09:36 +0200
with message-id <aFxlkAfPLU9BFqF4 <at> jurong>
and subject line Re: [PATCH] gnu: Add clac.
has caused the debbugs.gnu.org bug report #78771,
regarding [PATCH] gnu: Add clac.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
78771: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78771
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Skylar Hill <stellarskylark <at> posteo.net>
To: guix-patches <at> gnu.org
Cc: Skylar Hill <stellarskylark <at> posteo.net>
Subject: [PATCH] gnu: Add clac.
Date: Thu, 12 Jun 2025 03:12:49 +0000
*  (clac): New variable.

Vendors a dependency, linenoise, which is already packaged.  However,
since the linenoise package doesn't provide shared object files, I chose
to simply use the vendored one.

Change-Id: I5fe4db7b40b58753da3ac3ef947bf28cebeca7a6
---
 gnu/packages/algebra.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index b23785279e..931f421dac 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -2178,3 +2178,38 @@ (define-public msolve
 @end itemize")
     (license license:gpl2+)))
 
+(define-public clac
+  (package
+    (name "clac")
+    (version "0.3.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/soveran/clac")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        "0crpm5rxxipiz6kqs5ip900d77vvnslyjn5f6nj0lrc86bkbgi8d")))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:test-target "test"
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'configure)
+          (add-before 'build 'set-env
+            (lambda _
+              (setenv "CC" "gcc")
+              (setenv "PREFIX"
+                      #$output))))))
+    (home-page "https://github.com/soveran/clac")
+    (synopsis "Command-line, stack-based calculator with postfix notation")
+    (description
+     "A command line, stack-based calculator with postfix notation
+that displays the stack contents at all times.  As you type, the stack changes
+are reflected immediately.")
+    ;; Vendors two dependencies, both also BSD-2. SDS is not already
+    ;; packaged. linenoise is packaged, but the package doesn't provide shared
+    ;; object files so we have to build it anyway
+    (license license:bsd-2)))

base-commit: 3d4cadf2759665d3ef9b6b81e5ba73b488d84dc9
prerequisite-patch-id: 3fec04fa2a12083bb04816507fd9c714478c44bd
-- 
2.49.0



[Message part 3 (message/rfc822, inline)]
From: Andreas Enge <andreas <at> enge.fr>
To: Skylar Hill <stellarskylark <at> posteo.net>
Cc: 78771-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add clac.
Date: Wed, 25 Jun 2025 23:09:36 +0200
Hello,

thanks for your patch, this is a cute little software!
I have just pushed it after adding a copyright line for you and
making a few small changes to texts.

Andreas



This bug report was last modified 18 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.