guix.scm 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ;;; squee --- A guile interface to postgres via the ffi
  2. ;; Copyright (C) 2015 Christopher Allan Webber <cwebber@dustycloud.org>
  3. ;; This library is free software; you can redistribute it and/or
  4. ;; modify it under the terms of the GNU Lesser General Public
  5. ;; License as published by the Free Software Foundation; either
  6. ;; version 3 of the License, or (at your option) any later version.
  7. ;;
  8. ;; This library is distributed in the hope that it will be useful,
  9. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. ;; Lesser General Public License for more details.
  12. ;;
  13. ;; You should have received a copy of the GNU Lesser General Public
  14. ;; License along with this library; if not, write to the Free Software
  15. ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  16. (use-modules (srfi srfi-1)
  17. (srfi srfi-26)
  18. (guix packages)
  19. (guix build-system gnu)
  20. (guix download)
  21. (guix git-download)
  22. ((guix build utils) #:select (with-directory-excursion))
  23. (guix gexp)
  24. (gnu packages)
  25. (gnu packages autotools)
  26. (gnu packages base)
  27. (gnu packages guile)
  28. (gnu packages pkg-config)
  29. (gnu packages texinfo)
  30. (gnu packages databases)
  31. (guix licenses))
  32. (define %source-dir (dirname (current-filename)))
  33. (define guile-squee
  34. (package
  35. (name "guile-squee")
  36. (version "0.1")
  37. (source (local-file %source-dir
  38. #:recursive? #t
  39. #:select? (git-predicate %source-dir)))
  40. (build-system gnu-build-system)
  41. (arguments
  42. '(#:phases
  43. (modify-phases %standard-phases
  44. (add-after 'unpack 'bootstrap
  45. (lambda _ (zero? (system* "sh" "bootstrap.sh")))))))
  46. (native-inputs
  47. `(("pkg-config" ,pkg-config)
  48. ("autoconf" ,autoconf)
  49. ("automake" ,automake)
  50. ("texinfo" ,texinfo)))
  51. (inputs
  52. `(("guile" ,guile-2.2)
  53. ("postgresql" ,postgresql)))
  54. (home-page #f)
  55. (synopsis "Guile library for Postgresql using the FFI.")
  56. (description "Guile library for Postgresql using the FFI.")
  57. (license lgpl3+)))
  58. guile-squee