summary refs log tree commit diff
path: root/pkgs/development/libraries/dqlite
diff options
context:
space:
mode:
authorwucke13 <wucke13@gmail.com>2019-10-01 22:50:07 +0200
committerwucke13 <wucke13@gmail.com>2019-10-09 01:16:27 +0200
commitadd2a79b3f977d7fa072f54734663838ce0b2012 (patch)
treece30206e70919f22dee1de58375f55828a2a242f /pkgs/development/libraries/dqlite
parent7017e582ff5fca01f220c9c3ae402856324651b7 (diff)
downloadnixpkgs-add2a79b3f977d7fa072f54734663838ce0b2012.tar
nixpkgs-add2a79b3f977d7fa072f54734663838ce0b2012.tar.gz
nixpkgs-add2a79b3f977d7fa072f54734663838ce0b2012.tar.bz2
nixpkgs-add2a79b3f977d7fa072f54734663838ce0b2012.tar.lz
nixpkgs-add2a79b3f977d7fa072f54734663838ce0b2012.tar.xz
nixpkgs-add2a79b3f977d7fa072f54734663838ce0b2012.tar.zst
nixpkgs-add2a79b3f977d7fa072f54734663838ce0b2012.zip
dqlite: 0.2.6 -> 1.0.0
Diffstat (limited to 'pkgs/development/libraries/dqlite')
-rw-r--r--pkgs/development/libraries/dqlite/default.nix26
1 files changed, 19 insertions, 7 deletions
diff --git a/pkgs/development/libraries/dqlite/default.nix b/pkgs/development/libraries/dqlite/default.nix
index 093abe085f0..84b4b1bab77 100644
--- a/pkgs/development/libraries/dqlite/default.nix
+++ b/pkgs/development/libraries/dqlite/default.nix
@@ -1,24 +1,36 @@
-{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libuv, sqlite-replication }:
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, file, libco-canonical
+, libuv, raft-canonical, sqlite-replication }:
 
 with stdenv.lib;
 
 stdenv.mkDerivation rec {
   pname = "dqlite";
-  version = "0.2.6";
+  version = "1.0.0";
 
   src = fetchFromGitHub {
-    owner = "CanonicalLtd";
+    owner = "canonical";
     repo = pname;
     rev = "v${version}";
-    sha256 = "13l7na5858v2ah1vim6lafmzajgkymfi5rd6bk14cm4vcnxc40wb";
+    sha256 = "0670c1c84lcf5vl3h6mlff00fz2fnm766bzlk526sjjzysx3zjya";
   };
 
-  nativeBuildInputs = [ autoreconfHook pkgconfig ];
+  nativeBuildInputs = [ autoreconfHook file pkgconfig ];
+  buildInputs = [ libco-canonical.dev libuv raft-canonical.dev 
+                  sqlite-replication ];
 
-  buildInputs = [ libuv sqlite-replication ];
+  preConfigure= ''
+    substituteInPlace configure --replace /usr/bin/ " "
+  '';
+
+  doCheck = true;
+
+  outputs = [ "dev" "out" ];
 
   meta = {
-    description = "Expose a SQLite database over the network and replicate it across a cluster of peers";
+    description = ''
+      Expose a SQLite database over the network and replicate it across a
+      cluster of peers
+    '';
     homepage = https://github.com/CanonicalLtd/dqlite/;
     license = licenses.asl20;
     maintainers = with maintainers; [ joko ];