summary refs log tree commit diff
path: root/pkgs/development/tools/database
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-12-29 10:13:33 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-12-29 10:13:33 +0100
commitf29000b0023a879b42be2a8bd59136ec0c533b88 (patch)
tree4b0b2851c7dec0588d236f6d3946b8018a74afb9 /pkgs/development/tools/database
parent291eac9d70e5f4b8cbbc7632afcac5ea79eb62ba (diff)
parent76c146c99073ad27046a0a28bb3d2881486e32bb (diff)
downloadnixlib-f29000b0023a879b42be2a8bd59136ec0c533b88.tar
nixlib-f29000b0023a879b42be2a8bd59136ec0c533b88.tar.gz
nixlib-f29000b0023a879b42be2a8bd59136ec0c533b88.tar.bz2
nixlib-f29000b0023a879b42be2a8bd59136ec0c533b88.tar.lz
nixlib-f29000b0023a879b42be2a8bd59136ec0c533b88.tar.xz
nixlib-f29000b0023a879b42be2a8bd59136ec0c533b88.tar.zst
nixlib-f29000b0023a879b42be2a8bd59136ec0c533b88.zip
Merge branch 'master' into staging
Hydra: ?compare=1421760
Diffstat (limited to 'pkgs/development/tools/database')
-rw-r--r--pkgs/development/tools/database/pg_tmp/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/tools/database/pg_tmp/default.nix b/pkgs/development/tools/database/pg_tmp/default.nix
new file mode 100644
index 000000000000..b7d960d5af48
--- /dev/null
+++ b/pkgs/development/tools/database/pg_tmp/default.nix
@@ -0,0 +1,25 @@
+{ fetchFromBitbucket, stdenv }:
+
+stdenv.mkDerivation rec {
+  name = "pg_tmp-${version}";
+  version = "2.3";
+
+  src = fetchFromBitbucket {
+    owner = "eradman";
+    repo = "ephemeralpg";
+    rev = "ephemeralpg-${version}";
+    sha256 = "0j0va9pch2xhwwx4li3qx3lkgrd79c0hcy5w5y1cqax571hv89wa";
+  };
+
+  installPhase = ''
+    PREFIX=$out make install
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://ephemeralpg.org;
+    description = "Run tests on an isolated, temporary PostgreSQL database";
+    license = licenses.isc;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ hrdinka ];
+  };
+}