From f8cd1b3062da3986ddb8803195582c28776b0def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 2 Jul 2014 11:18:27 +0200 Subject: [PATCH 1/3] Adding sqlcipher. --- .../libraries/sqlcipher/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 ++++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/libraries/sqlcipher/default.nix diff --git a/pkgs/development/libraries/sqlcipher/default.nix b/pkgs/development/libraries/sqlcipher/default.nix new file mode 100644 index 00000000000..04e11099116 --- /dev/null +++ b/pkgs/development/libraries/sqlcipher/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, openssl, tcl, readline ? null, ncurses ? null }: + +assert readline != null -> ncurses != null; + +stdenv.mkDerivation { + name = "sqlcipher-3.1.0"; + + src = fetchurl { + url = "https://github.com/sqlcipher/sqlcipher/archive/v3.1.0.tar.gz"; + sha256 = "1h54hsl7g6ra955aaqid5wxm93fklx2pxz8abcdwf9md3bpfcn18"; + }; + + buildInputs = [ readline ncurses openssl tcl ]; + + configureFlags = "--enable-threadsafe --disable-tcl"; + + CFLAGS = "-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_HAS_CODEC"; + LDFLAGS = if readline != null then "-lncurses" else ""; + + meta = { + homepage = http://sqlcipher.net/ + description = "Full Database Encryption for SQLite"; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2e26747004a..450b28bd85e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6147,6 +6147,11 @@ let inherit readline ncurses; }); + sqlcipher = lowPrio (callPackage ../development/libraries/sqlcipher { + readline = null; + ncurses = null; + }); + stfl = callPackage ../development/libraries/stfl { stdenv = if stdenv.isDarwin then overrideGCC stdenv gccApple From eeadde096709846e986c56037efb203f53a659a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 2 Jul 2014 11:27:24 +0200 Subject: [PATCH 2/3] sqlcipher: missing semicolon on nix syntax --- pkgs/development/libraries/sqlcipher/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/sqlcipher/default.nix b/pkgs/development/libraries/sqlcipher/default.nix index 04e11099116..bc30716e81f 100644 --- a/pkgs/development/libraries/sqlcipher/default.nix +++ b/pkgs/development/libraries/sqlcipher/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation { LDFLAGS = if readline != null then "-lncurses" else ""; meta = { - homepage = http://sqlcipher.net/ + homepage = http://sqlcipher.net/; description = "Full Database Encryption for SQLite"; platforms = stdenv.lib.platforms.unix; }; From cb41fecaa1ffd6626366f566fdd5dcbd369bdcd2 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Wed, 2 Jul 2014 11:27:21 +0200 Subject: [PATCH 3/3] Try fixing the nixos mumble tests, again --- nixos/tests/mumble.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/tests/mumble.nix b/nixos/tests/mumble.nix index 32aae916139..3759d73355d 100644 --- a/nixos/tests/mumble.nix +++ b/nixos/tests/mumble.nix @@ -30,21 +30,21 @@ in $client1->execute("mumble mumble://client1\@server/test &"); $client2->execute("mumble mumble://client2\@server/test &"); - $client1->waitForWindow(qr/Mumble/); - $client2->waitForWindow(qr/Mumble/); - $server->sleep(3); # Wait some more for the Mumble UI - # cancel client audio configuration + $client1->waitForWindow(qr/Audio Tuning Wizard/); + $client2->waitForWindow(qr/Audio Tuning Wizard/); $client1->sendKeys("esc"); $client2->sendKeys("esc"); - $server->sleep(1); # cancel client cert configuration + $client1->waitForWindow(qr/Certificate Management/); + $client2->waitForWindow(qr/Certificate Management/); $client1->sendKeys("esc"); $client2->sendKeys("esc"); - $server->sleep(1); # accept server certificate + $client1->waitForWindow(qr/^Mumble$/); + $client2->waitForWindow(qr/^Mumble$/); $client1->sendChars("y"); $client2->sendChars("y");