Advertisement
Guest User

Untitled

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