git.iko.soy/typeable/nixpkgs
on master help sign in
souffle: init at 1.0.0
commit247c54e374882443492b19a2275c707b5c25174d authorDan Peebles <pumpkin@me.com> dateTue 6 Sep 2016, 17:44 (10 years ago) parentc43c0b2
3 files changed+48
lib/licenses.nix+5 pkgs/development/compilers/souffle/default.nix+41 pkgs/top-level/all-packages.nix+2
lib/licenses.nix+5
@@ -470,6 +470,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
470470 fullName = "The Unlicense";
471471 };
472472
473+ upl = {
474+ fullName = "Universal Permissive License";
475+ url = "https://oss.oracle.com/licenses/upl/";
476+ };
477+
473478 vim = spdx {
474479 spdxId = "Vim";
475480 fullName = "Vim License";
pkgs/development/compilers/souffle/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ stdenv, fetchFromGitHub, autoconf, automake, boost, bison, flex, openjdk, doxygen, perl, graphviz }:
2+
3+stdenv.mkDerivation rec {
4+ version = "1.0.0";
5+ name = "souffle-${version}";
6+
7+ src = fetchFromGitHub {
8+ owner = "souffle-lang";
9+ repo = "souffle";
10+ rev = version;
11+ sha256 = "13j14227dgxcm25z9iizcav563wg2ak9338pb03aqqz8yqxbmz4n";
12+ };
13+
14+ buildInputs = [
15+ autoconf automake boost bison flex openjdk
16+ # Used for docs
17+ doxygen perl graphviz
18+ ];
19+
20+ patchPhase = ''
21+ substituteInPlace configure.ac \
22+ --replace "m4_esyscmd([git describe --tags --abbrev=0 | tr -d '\n'])" "${version}"
23+ '';
24+
25+ # Without this, we get an obscure error about not being able to find a library version
26+ # without saying what library it's looking for. Turns out it's searching global paths
27+ # for boost and failing there, so we tell it what's what here.
28+ configureFlags = [ "--with-boost-libdir=${boost}/lib" ];
29+
30+ preConfigure = "./bootstrap";
31+
32+ enableParallelBuilding = true;
33+
34+ meta = with stdenv.lib; {
35+ description = "A translator of declarative Datalog programs into the C++ language";
36+ homepage = "http://souffle-lang.github.io/";
37+ platforms = platforms.unix;
38+ maintainers = with maintainers; [ copumpkin ];
39+ license = licenses.upl;
40+ };
41+}
pkgs/top-level/all-packages.nix+2
@@ -5582,6 +5582,8 @@ in
55825582
55835583 solc = callPackage ../development/compilers/solc { };
55845584
5585+ souffle = callPackage ../development/compilers/souffle { };
5586+
55855587 sqldeveloper = callPackage ../development/tools/database/sqldeveloper { };
55865588
55875589 squeak = callPackage ../development/compilers/squeak { };