gnu: Add cogutil.
[jackhill/guix/guix.git] / gnu / packages / opencog.scm
CommitLineData
51c9221a
RW
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages opencog)
20 #:use-module (gnu packages)
21 #:use-module (gnu packages boost)
22 #:use-module (gnu packages check)
23 #:use-module (gnu packages pkg-config)
24 #:use-module (gnu packages python)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (guix packages)
27 #:use-module (guix git-download)
28 #:use-module (guix build-system cmake)
29 #:use-module (guix utils))
30
31(define-public cogutil
32 ;; The last release was in 2016. Other OpenCog packages require a later
33 ;; version.
34 (let ((commit "b07b41b2eaf01627c78b27f1f28bb09ef7086f8e")
35 (revision "1"))
36 (package
37 (name "cogutil")
38 (version (git-version "2.0.3" revision commit))
39 (source (origin
40 (method git-fetch)
41 (uri (git-reference
42 (url "https://github.com/opencog/cogutil.git")
43 (commit commit)))
44 (file-name (git-file-name name version))
45 (sha256
46 (base32
47 "1ymmcrinp0prlxsmxmwdjjl4kgaj7wzq39d5b1q2apgg94yfdhqb"))))
48 (build-system cmake-build-system)
49 (arguments
50 `(#:test-target "tests"))
51 (inputs
52 `(("boost" ,boost)))
53 (native-inputs
54 `(("cxxtest" ,cxxtest)
55 ("python" ,python-minimal)
56 ("pkg-config" ,pkg-config)))
57 (home-page "https://github.com/opencog/cogutil/")
58 (synopsis "Low-level C++ programming utilities used by OpenCog components")
59 (description "The OpenCog utilities is a miscellaneous collection of C++
60utilities use for typical programming tasks in multiple OpenCog projects.")
61 ;; Either of these licenses.
62 (license (list license:agpl3 license:asl2.0)))))