summaryrefslogtreecommitdiff
path: root/pkgs/development/tools/database
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/tools/database
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/tools/database')
-rw-r--r--pkgs/development/tools/database/liquibase/default.nix4
-rw-r--r--pkgs/development/tools/database/movine/default.nix54
-rw-r--r--pkgs/development/tools/database/webdis/default.nix4
3 files changed, 58 insertions, 4 deletions
diff --git a/pkgs/development/tools/database/liquibase/default.nix b/pkgs/development/tools/database/liquibase/default.nix
index 32ab88bf4128..c4393821b7de 100644
--- a/pkgs/development/tools/database/liquibase/default.nix
+++ b/pkgs/development/tools/database/liquibase/default.nix
@@ -10,11 +10,11 @@ in
stdenv.mkDerivation rec {
pname = "liquibase";
- version = "4.3.2";
+ version = "4.3.5";
src = fetchurl {
url = "https://github.com/liquibase/liquibase/releases/download/v${version}/${pname}-${version}.tar.gz";
- sha256 = "sha256-sc/W4N+pd1bhLiyQLqm0j2o/RviT8iKzBZcD0GRDqqE=";
+ sha256 = "sha256-XOYq+p76XFt7j4oxMClZox5wsaXuV5ovcB6kZJhMBlU=";
};
nativeBuildInputs = [ makeWrapper ];
diff --git a/pkgs/development/tools/database/movine/default.nix b/pkgs/development/tools/database/movine/default.nix
new file mode 100644
index 000000000000..fd5debcb9a20
--- /dev/null
+++ b/pkgs/development/tools/database/movine/default.nix
@@ -0,0 +1,54 @@
+{ rustPlatform
+, fetchFromGitHub
+, lib
+, stdenv
+, pkg-config
+, postgresql
+, sqlite
+, openssl
+, Security
+, libiconv
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "movine";
+ version = "0.11.0";
+
+ src = fetchFromGitHub {
+ owner = "byronwasti";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0rms8np8zd23xzrd5avhp2q1ndhdc8f49lfwpff9h0slw4rnzfnj";
+ };
+
+ cargoSha256 = "sha256-4ghfenwmauR4Ft9n7dvBflwIMXPdFq1vh6FpIegHnZk=";
+
+ nativeBuildInputs = [ pkg-config ];
+ buildInputs = [ postgresql sqlite ] ++ (
+ if !stdenv.isDarwin then [ openssl ] else [ Security libiconv ]
+ );
+
+ meta = with lib; {
+ description = "A migration manager written in Rust, that attempts to be smart yet minimal";
+ homepage = "https://github.com/byronwasti/movine";
+ license = licenses.mit;
+ longDescription = ''
+ Movine is a simple database migration manager that aims to be compatible
+ with real-world migration work. Many migration managers get confused
+ with complicated development strategies for migrations. Oftentimes
+ migration managers do not warn you if the SQL saved in git differs from
+ what was actually run on the database. Movine solves this issue by
+ keeping track of the unique hashes for the <literal>up.sql</literal> and
+ <literal>down.sql</literal> for each migration, and provides tools for
+ fixing issues. This allows users to easily keep track of whether their
+ local migration history matches the one on the database.
+
+ This project is currently in early stages.
+
+ Movine does not aim to be an ORM.
+ Consider <link xling:href="https://diesel.rs/">diesel</link> instead if
+ you want an ORM.
+ '';
+ maintainers = with maintainers; [ netcrns ];
+ };
+}
diff --git a/pkgs/development/tools/database/webdis/default.nix b/pkgs/development/tools/database/webdis/default.nix
index 042f5a1aa6d6..226fc049e081 100644
--- a/pkgs/development/tools/database/webdis/default.nix
+++ b/pkgs/development/tools/database/webdis/default.nix
@@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "webdis";
- version = "0.1.12";
+ version = "0.1.15";
src = fetchFromGitHub {
owner = "nicolasff";
repo = pname;
rev = version;
- sha256 = "sha256-pppA/Uyz1ge7UOG1PrqpTQC5sSGMWPw0J+CtaoZpOCM=";
+ sha256 = "sha256-ViU/CKkmBY8WwQq/oJ2/qETqr2k8JNFtNPhozw5BmEc=";
};
buildInputs = [ hiredis http-parser jansson libevent ];