summary refs log tree commit diff
path: root/guix.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix.scm')
-rw-r--r--guix.scm65
1 files changed, 65 insertions, 0 deletions
diff --git a/guix.scm b/guix.scm
new file mode 100644
index 0000000..aad3616
--- /dev/null
+++ b/guix.scm
@@ -0,0 +1,65 @@
+;;; guile-xapian --- Guile bindings for Xapian
+;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
+;;;
+;;; This file is part of guile-xapian.
+;;;
+;;; guile-xapian is free software: you can redistribute it and/or
+;;; modify it under the terms of the GNU General Public License as
+;;; published by the Free Software Foundation, either version 2 of the
+;;; License, or (at your option) any later version.
+;;;
+;;; guile-xapian is distributed in the hope that it will be useful,
+;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with guile-xapian.  If not, see
+;;; <https://www.gnu.org/licenses/>.
+
+;;; Run the following command to enter a development environment for
+;;; guile-xapian:
+;;;
+;;;  $ guix environment -l guix.scm
+
+(use-modules (guix build-system gnu)
+             (guix git-download)
+             ((guix licenses) #:prefix license:)
+             (guix packages)
+             (gnu packages autotools)
+             (gnu packages commencement)
+             (gnu packages compression)
+             (gnu packages guile)
+             (gnu packages pkg-config)
+             (gnu packages search)
+             (gnu packages swig))
+
+(package
+  (name "guile-xapian")
+  (version "0.1.0")
+  (home-page "https://git.systemreboot.net/guile-xapian")
+  (source
+   (origin
+     (method git-fetch)
+     (uri (git-reference
+           (url home-page)
+           (commit "a14ea81b71803ee93de6edff9065b4bebcb2cf2e")))
+     (file-name (git-file-name name version))
+     (sha256
+      (base32
+       "1ac7g0gd8ndwv3ybqn5vjgqxa7090bby4db164a7mn9ssp8b803s"))))
+  (inputs
+   `(("guile" ,guile-2.2)
+     ("xapian" ,xapian)
+     ("zlib" ,zlib)))
+  (native-inputs
+   `(("autoconf" ,autoconf)
+     ("autoconf-archive" ,autoconf-archive)
+     ("automake" ,automake)
+     ("libtool" ,libtool)
+     ("pkg-config" ,pkg-config)
+     ("swig" ,swig)))
+  (build-system gnu-build-system)
+  (synopsis "Guile bindings for Xapian")
+  (description "Guile bindings for Xapian")
+  (license license:gpl2+))