aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpukkamustard <pukkamustard@posteo.net>2020-10-15 18:51:07 +0200
committerpukkamustard <pukkamustard@posteo.net>2020-12-05 16:41:07 +0100
commit9f40cbb54977238e6fd47fb585b5c70d4007a6aa (patch)
tree0053d4d575a8a24c4519d15a6835897490f59e6e
parentee648df7dea9dc99a6cce599b2deb4674e3c7795 (diff)
gnu: Add souffle.souffle
* gnu/packages/souffle.scm (souffle): New variable.
-rw-r--r--gnu/packages/souffle.scm95
1 files changed, 95 insertions, 0 deletions
diff --git a/gnu/packages/souffle.scm b/gnu/packages/souffle.scm
new file mode 100644
index 0000000000..ff7e288328
--- /dev/null
+++ b/gnu/packages/souffle.scm
@@ -0,0 +1,95 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2020 pukkamustard <pukkamustard@posteo.net>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix 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 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix 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 GNU Guix. If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages souffle)
+ #:use-module (guix download)
+ #:use-module (guix git-download)
+ #:use-module (guix build-system gnu)
+ #:use-module (guix packages)
+ #:use-module (guix utils)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (gnu packages)
+ #:use-module (gnu packages autotools)
+ #:use-module (gnu packages commencement)
+ #:use-module (gnu packages compression)
+ #:use-module (gnu packages cpp)
+ #:use-module (gnu packages bison)
+ #:use-module (gnu packages flex)
+ #:use-module (gnu packages libffi)
+ #:use-module (gnu packages linux)
+ #:use-module (gnu packages ncurses)
+ #:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages sqlite)
+ #:use-module (gnu packages swig))
+
+(define-public souffle
+ (package
+ (name "souffle")
+ (version "2.0.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/souffle-lang/souffle/")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1fa6yssgndrln8qbbw2j7j199glxp63irfrz1c2y424rq82mm2r5"))))
+ (build-system gnu-build-system)
+ ;; TODO remove before submitting. Tests are extensive and take some time.
+ (arguments '(#:tests? #f
+ #:phases (modify-phases %standard-phases
+ (add-after 'install 'wrap-binaries
+ (lambda* (#:key outputs inputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (mcpp-bin (string-append (assoc-ref inputs "mcpp")
+ "/bin"))
+ (gcc-bin (string-append (assoc-ref inputs "gcc-toolchain")
+ "/bin")))
+ (map
+ (lambda (script-path)
+ (wrap-program (string-append out script-path)
+ `("PATH" ":" prefix (,mcpp-bin ,gcc-bin))))
+ '("/bin/souffle" "/bin/souffle-config" "/bin/souffle-compile"))
+ #t))))))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("flex" ,flex)
+ ("bison" ,bison)))
+ (inputs
+ `(("libffi" ,libffi)
+ ("ncurses" ,ncurses)
+ ("mcpp" ,mcpp)
+ ("sqlite" ,sqlite)
+ ("zlib" ,zlib)
+ ("gcc-toolchain" ,gcc-toolchain)
+ ;; ("gcc-toolchain" ,(specification->package "gcc-toolchain@8"))
+ ("swig" ,swig)
+ ("pkg-config" ,pkg-config)))
+ (propagated-inputs
+ `(("linux-libre-headers" ,linux-libre-headers)))
+ (home-page "https://souffle-lang.github.io/")
+ (synopsis "Soufflé is a logic programming language inspired by Datalog")
+ (description " Soufflé is a logic programming language inspired by Datalog
+that is frequently used as a domain-specific language for analysis
+problems. Soufflé can synthesize a native parallel C++ program from a logic
+specification.")
+ (license (license:fsf-free "https://oss.oracle.com/licenses/upl/"
+ "https://www.gnu.org/licenses/license-list.html#UPL"))))