2018-05-07 06:16:50 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, boost, bison, flex, openjdk, doxygen
|
2018-07-21 01:44:44 +01:00
|
|
|
, perl, graphviz, ncurses, zlib, sqlite
|
2018-05-07 06:16:50 +01:00
|
|
|
, autoreconfHook }:
|
2016-09-06 22:44:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-05-01 19:56:06 +01:00
|
|
|
version = "1.2.0";
|
2016-09-06 22:44:41 +01:00
|
|
|
name = "souffle-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "souffle-lang";
|
|
|
|
repo = "souffle";
|
|
|
|
rev = version;
|
2018-05-01 19:56:06 +01:00
|
|
|
sha256 = "1g8yvm40h102mab8lacpl1cwgqsw1js0s1yn4l84l9fjdvlh2ygd";
|
2016-09-06 22:44:41 +01:00
|
|
|
};
|
|
|
|
|
2018-05-07 06:16:50 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook bison flex ];
|
|
|
|
|
2016-09-06 22:44:41 +01:00
|
|
|
buildInputs = [
|
2018-05-07 06:16:50 +01:00
|
|
|
boost openjdk ncurses zlib sqlite doxygen perl graphviz
|
2016-09-06 22:44:41 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace configure.ac \
|
2018-05-01 19:56:06 +01:00
|
|
|
--replace "m4_esyscmd([git describe --tags --abbrev=0 --always | tr -d '\n'])" "${version}"
|
2016-09-06 22:44:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Without this, we get an obscure error about not being able to find a library version
|
|
|
|
# without saying what library it's looking for. Turns out it's searching global paths
|
|
|
|
# for boost and failing there, so we tell it what's what here.
|
|
|
|
configureFlags = [ "--with-boost-libdir=${boost}/lib" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A translator of declarative Datalog programs into the C++ language";
|
|
|
|
homepage = "http://souffle-lang.github.io/";
|
|
|
|
platforms = platforms.unix;
|
2018-05-01 19:56:06 +01:00
|
|
|
maintainers = with maintainers; [ copumpkin wchresta ];
|
2016-09-06 22:44:41 +01:00
|
|
|
license = licenses.upl;
|
|
|
|
};
|
|
|
|
}
|