Advertisement
Guest User

Untitled

a guest
May 27th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 2.92 KB | None | 0 0
  1. (use-modules (guix packages)
  2.              (guix gexp)
  3.              (guix download)
  4.              (guix git-download)
  5.              (gnu packages autotools)
  6.              (guix build-system gnu)
  7.              (gnu packages guile)
  8.              (gnu packages perl)
  9.              (gnu packages texinfo)
  10.              ((guix licenses) #:prefix license:))
  11.  
  12.  
  13. (package
  14.  (name "guile3-dbi")
  15.  (version "2.1.8")
  16.  (source (local-file "/home/nalaginrut/Project/guile-dbi" #:recursive? #t))
  17.  (build-system gnu-build-system)
  18.  (arguments
  19.   `(#:modules (((guix build guile-build-system)
  20.                 #:select (target-guile-effective-version))
  21.                ,@%gnu-build-system-modules)
  22.               #:imported-modules ((guix build guile-build-system)
  23.                                   ,@%gnu-build-system-modules)
  24.               #:configure-flags
  25.               (list (string-append
  26.                      "--with-guile-site-dir=" %output "/share/guile/site/"
  27.                      (target-guile-effective-version (assoc-ref %build-inputs "guile"))))
  28.               #:phases
  29.               (modify-phases %standard-phases
  30.                              (add-after 'unpack 'chdir
  31.                                         (lambda _
  32.                                           ;; The upstream Git repository contains all the code, so change
  33.                                           ;; to the directory specific to guile-dbi.
  34.                                           (chdir "guile-dbi")))
  35.                              (add-after 'install 'patch-extension-path
  36.                                         (lambda* (#:key inputs outputs #:allow-other-keys)
  37.                                           (let* ((out (assoc-ref outputs "out"))
  38.                                                  (dbi.scm (string-append out "/share/guile/site/"
  39.                                                                          (target-guile-effective-version
  40.                                                                           (assoc-ref inputs "guile"))
  41.                                                                          "/dbi/dbi.scm"))
  42.                                                  (ext (string-append out "/lib/libguile-dbi")))
  43.                                             (substitute* dbi.scm (("libguile-dbi") ext))))))))
  44.  (inputs
  45.   (list guile-3.0))
  46.  (native-inputs
  47.   (list autoconf automake libtool perl texinfo))
  48.  (synopsis "Guile database abstraction layer")
  49.  (home-page "https://github.com/opencog/guile-dbi")
  50.  (description
  51.   "guile-dbi is a library for Guile that provides a convenient interface to
  52. SQL databases.  Database programming with guile-dbi is generic in that the same
  53. programming interface is presented regardless of which database system is used.
  54. It currently supports MySQL, Postgres and SQLite3.")
  55.  (license license:gpl2+)
  56.  (native-search-paths
  57.   (list (search-path-specification
  58.          (variable "GUILE_DBD_PATH")
  59.          (files '("lib"))))))
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement