all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#26856: guile-miniadapton
@ 2017-05-09 15:50 Catonano
  2017-05-10  6:36 ` Catonano
  0 siblings, 1 reply; 4+ messages in thread
From: Catonano @ 2017-05-09 15:50 UTC (permalink / raw)
  To: 26856


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

I couldn't lint this package because the linter crashed on me

It crashed also on guile-irregex that was already there

It could be something in the current master or in my setup, I don't know

Thanks in advance

[-- Attachment #1.2: Type: text/html, Size: 297 bytes --]

[-- Attachment #2: 0001-gnu-Add-guile-miniadapton.patch --]
[-- Type: text/x-patch, Size: 4346 bytes --]

From 2d48b6caaad928714c5fa1019b1280b60543efdb Mon Sep 17 00:00:00 2001
From: humanitiesNerd <catonano@gmail.com>
Date: Fri, 5 May 2017 18:22:45 +0200
Subject: [PATCH 1/1] gnu: Add guile-miniadapton.

* gnu/packages/guile.scm (guile-miniadapton): New variable.
---
 gnu/packages/guile.scm | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index c2f31fc8a..c7f3b8241 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -32,6 +32,7 @@
 (define-module (gnu packages guile)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (gnu packages)
+  #:use-module (gnu packages admin) ;;for tree
   #:use-module (gnu packages aspell)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages bdw-gc)
@@ -794,6 +795,74 @@ See http://minikanren.org/ for more on miniKanren generally.")
 (define-public guile2.2-minikanren
   (package-for-guile-2.2 guile-minikanren))
 
+(define-public guile-miniadapton
+  (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
+        (revision "1"))
+    (package
+      (name "guile-miniadapton")
+      (version (string-append "0-" revision "." (string-take commit 9)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/fisherdj/miniAdapton.git")
+                      (commit commit)))
+                (file-name (string-append name "-" version "-checkout"))
+                (sha256
+                 (base32
+                  "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:modules ((guix build utils)
+                    (ice-9 popen)
+                    (ice-9 rdelim)
+                    (srfi srfi-1)
+                    (guix build gnu-build-system))
+         #:tests? #f                    ; there is no test target
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+           (delete 'build)
+           (replace 'install
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let* ((cwd        (getcwd))
+                      (scm-files  (find-files "." "\\.scm$"))
+                      (effective  (read-line
+                                   (open-pipe* OPEN_READ
+                                               "guile" "-c"
+                                               "(display (effective-version))")))
+                      (module-dir (string-append (assoc-ref outputs "out")
+                                                 "/share/guile/site/"
+                                                 effective)))
+
+                 ;; Make installation directories.
+                 (mkdir-p module-dir)
+
+                 (setenv "GUILE_AUTO_COMPILE" "0")
+
+                 ;; Compile .scm files and install.
+                 (every (lambda (file)
+                          (let ((go-file (string-append module-dir "/"
+                                                        (basename file ".scm") ".go")))
+                            ;; Install source module.
+                            (install-file file module-dir)
+                            ;; Compile and install module.
+                            (zero? (system* "guild" "compile" "-L" cwd
+                                            "-o" go-file file))))
+                        scm-files)))))))
+      (inputs
+       `(("guile" ,guile-2.2)))
+      (home-page "https://github.com/fisherdj/miniAdapton")
+      (synopsis "Minimal implementation of incremental computation in Guile
+Scheme")
+      (description "This package provides a complete Scheme implementation of
+miniAdapton, which implements the core functionality of the Adapton system for
+incremental computation (also known as self-adjusting computation).  Like
+Adapton, miniAdapton allows programmers to safely combine mutation and
+memoization.  miniAdapton is built on top of an even simpler system,
+microAdapton.  Both miniAdapton and microAdapton are designed to be easy to
+understand, extend, and port to host languages other than Scheme.")
+      (license license:expat))))
+
 (define-public guile-irregex
   (package
     (name "guile-irregex")
-- 
2.12.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#26856: guile-miniadapton
  2017-05-09 15:50 bug#26856: guile-miniadapton Catonano
@ 2017-05-10  6:36 ` Catonano
  2017-05-10  7:02   ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Catonano @ 2017-05-10  6:36 UTC (permalink / raw)
  To: 26856


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

I had miistaken my name

This one is correct

2017-05-09 17:50 GMT+02:00 Catonano <catonano@gmail.com>:

> I couldn't lint this package because the linter crashed on me
>
> It crashed also on guile-irregex that was already there
>
> It could be something in the current master or in my setup, I don't know
>
> Thanks in advance
>

[-- Attachment #1.2: Type: text/html, Size: 716 bytes --]

[-- Attachment #2: 0001-gnu-Add-guile-miniadapton.patch --]
[-- Type: text/x-patch, Size: 4346 bytes --]

From 2d48b6caaad928714c5fa1019b1280b60543efdb Mon Sep 17 00:00:00 2001
From: Adriano Peluso <catonano@gmail.com>
Date: Fri, 5 May 2017 18:22:45 +0200
Subject: [PATCH 1/2] gnu: Add guile-miniadapton.

* gnu/packages/guile.scm (guile-miniadapton): New variable.
---
 gnu/packages/guile.scm | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index c2f31fc8a..c7f3b8241 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -32,6 +32,7 @@
 (define-module (gnu packages guile)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (gnu packages)
+  #:use-module (gnu packages admin) ;;for tree
   #:use-module (gnu packages aspell)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages bdw-gc)
@@ -794,6 +795,74 @@ See http://minikanren.org/ for more on miniKanren generally.")
 (define-public guile2.2-minikanren
   (package-for-guile-2.2 guile-minikanren))
 
+(define-public guile-miniadapton
+  (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
+        (revision "1"))
+    (package
+      (name "guile-miniadapton")
+      (version (string-append "0-" revision "." (string-take commit 9)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/fisherdj/miniAdapton.git")
+                      (commit commit)))
+                (file-name (string-append name "-" version "-checkout"))
+                (sha256
+                 (base32
+                  "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:modules ((guix build utils)
+                    (ice-9 popen)
+                    (ice-9 rdelim)
+                    (srfi srfi-1)
+                    (guix build gnu-build-system))
+         #:tests? #f                    ; there is no test target
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+           (delete 'build)
+           (replace 'install
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let* ((cwd        (getcwd))
+                      (scm-files  (find-files "." "\\.scm$"))
+                      (effective  (read-line
+                                   (open-pipe* OPEN_READ
+                                               "guile" "-c"
+                                               "(display (effective-version))")))
+                      (module-dir (string-append (assoc-ref outputs "out")
+                                                 "/share/guile/site/"
+                                                 effective)))
+
+                 ;; Make installation directories.
+                 (mkdir-p module-dir)
+
+                 (setenv "GUILE_AUTO_COMPILE" "0")
+
+                 ;; Compile .scm files and install.
+                 (every (lambda (file)
+                          (let ((go-file (string-append module-dir "/"
+                                                        (basename file ".scm") ".go")))
+                            ;; Install source module.
+                            (install-file file module-dir)
+                            ;; Compile and install module.
+                            (zero? (system* "guild" "compile" "-L" cwd
+                                            "-o" go-file file))))
+                        scm-files)))))))
+      (inputs
+       `(("guile" ,guile-2.2)))
+      (home-page "https://github.com/fisherdj/miniAdapton")
+      (synopsis "Minimal implementation of incremental computation in Guile
+Scheme")
+      (description "This package provides a complete Scheme implementation of
+miniAdapton, which implements the core functionality of the Adapton system for
+incremental computation (also known as self-adjusting computation).  Like
+Adapton, miniAdapton allows programmers to safely combine mutation and
+memoization.  miniAdapton is built on top of an even simpler system,
+microAdapton.  Both miniAdapton and microAdapton are designed to be easy to
+understand, extend, and port to host languages other than Scheme.")
+      (license license:expat))))
+
 (define-public guile-irregex
   (package
     (name "guile-irregex")
-- 
2.12.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#26856: guile-miniadapton
  2017-05-10  6:36 ` Catonano
@ 2017-05-10  7:02   ` Ricardo Wurmus
  2017-05-10  7:03     ` Catonano
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2017-05-10  7:02 UTC (permalink / raw)
  To: Catonano; +Cc: 26856-done


> From 2d48b6caaad928714c5fa1019b1280b60543efdb Mon Sep 17 00:00:00 2001
> From: Adriano Peluso <catonano@gmail.com>
> Date: Fri, 5 May 2017 18:22:45 +0200
> Subject: [PATCH 1/2] gnu: Add guile-miniadapton.
>
> * gnu/packages/guile.scm (guile-miniadapton): New variable.

I pushed this to master with commit
28a1041fa5b6896e16c6f7c1c2b77763c540de7a.  Only then did I notice that
your name on the patch is “Catonano <catonano@gmail.com>”, because “git
am” takes it from the email that you feed it, and on your email the
sender name is “Catonano <catonano@gmail.com>”.

To avoid this in the future you may want to change the default sender
name.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26856: guile-miniadapton
  2017-05-10  7:02   ` Ricardo Wurmus
@ 2017-05-10  7:03     ` Catonano
  0 siblings, 0 replies; 4+ messages in thread
From: Catonano @ 2017-05-10  7:03 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 26856-done

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

2017-05-10 9:02 GMT+02:00 Ricardo Wurmus <rekado@elephly.net>:

>
> > From 2d48b6caaad928714c5fa1019b1280b60543efdb Mon Sep 17 00:00:00 2001
> > From: Adriano Peluso <catonano@gmail.com>
> > Date: Fri, 5 May 2017 18:22:45 +0200
> > Subject: [PATCH 1/2] gnu: Add guile-miniadapton.
> >
> > * gnu/packages/guile.scm (guile-miniadapton): New variable.
>
> I pushed this to master with commit
> 28a1041fa5b6896e16c6f7c1c2b77763c540de7a.  Only then did I notice that
> your name on the patch is “Catonano <catonano@gmail.com>”, because “git
> am” takes it from the email that you feed it, and on your email the
> sender name is “Catonano <catonano@gmail.com>”.
>
> To avoid this in the future you may want to change the default sender
> name.
>

Yes, thank you, I'm gonna do that right now

[-- Attachment #2: Type: text/html, Size: 1338 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-10  7:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09 15:50 bug#26856: guile-miniadapton Catonano
2017-05-10  6:36 ` Catonano
2017-05-10  7:02   ` Ricardo Wurmus
2017-05-10  7:03     ` Catonano

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.