Paste number 346142: miniadapton

Paste number 346142: miniadapton
Pasted by: Cato
When:2 years, 7 months ago
Share:Tweet this! |
Paste contents:
Raw Source | XML | Display As
(define-public guile-miniadapton
    (name "guile-miniadapton")
    (version "master")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "")
                    (commit "1b5749422304567c96ac5367f2221dda9eff5880")))
            (file-name (string-append name "-" version "-checkout"))
  (build-system gnu-build-system)
     ((guix build utils)
      (ice-9 match)
      (ice-9 popen)
      (ice-9 rdelim)
      (guix build gnu-build-system))
     (modify-phases %standard-phases
       (delete 'configure)
       (delete 'build)
       (delete 'check)
       (replace 'install
                (lambda* (#:key inputs outputs #:allow-other-keys)
                  (let* ((out (assoc-ref outputs "out"))
                         (effective (read-line
                                     (open-pipe* OPEN_READ
                                                 "guile" "-c"
                                                 "(display (effective-version))")))
                         (zero? (system* "tree"))
                         (module-dir (string-append out "/share/guile/site/"
                         (source (assoc-ref inputs "source"))
                         (scm-files '("include.scm"
                         (guild (string-append (assoc-ref %build-inputs "guile")
                    ;; Make installation directories.
                    ;;(mkdir-p (string-append module-dir "source"))
                    ;; Compile .scm files and install.
                    (setenv "GUILE_AUTO_COMPILE" "0")
                    (for-each (lambda (file)
                                (let* ((dest-file (string-append
                                                 module-dir "/"
                                       (go-file (match (string-split file #\.)
                                                  ((base _)
                                                   (string-append module-dir "/" base ".go")))))   
                                  ;; Install source module.
                                  (copy-file file
                                  ;; Install compiled module.
                                  (unless (zero? (system* guild "compile"
                                                          "-L" (getcwd)
                                                          "-o" go-file
                                    (error (format #f "Failed to compile ~s to ~s!"
                                                   file dest-file)))))
   `(("guile" ,guile-2.2)))
   `(("tree" ,tree)))
  (home-page "")
  (synopsis "a minimal implementation of incremental computation 
in (Guile) Scheme")
   "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,
Both miniAdapton and microAdapton
are designed to be easy to understand, extend, and port to
host languages other than Scheme.")
  (license license:expat)))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.