Created
April 1, 2021 18:31
-
-
Save ivan/138dffdb8f379dd4b301acd3860f6833 to your computer and use it in GitHub Desktop.
nixpkgs: ephemeralpg: make the periods extension available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 98bc05231712d01bd06471689e5046ff690dcb8d Mon Sep 17 00:00:00 2001 | |
From: Ivan Kozik <ivan@ludios.org> | |
Date: Sun, 22 Nov 2020 02:14:24 +0000 | |
Subject: [PATCH] ephemeralpg: make the periods extension available | |
--- | |
.../development/tools/database/ephemeralpg/default.nix | 10 ++++++++-- | |
1 file changed, 8 insertions(+), 2 deletions(-) | |
diff --git a/pkgs/development/tools/database/ephemeralpg/default.nix b/pkgs/development/tools/database/ephemeralpg/default.nix | |
index 0fb3ae81030..84ca72eab5c 100644 | |
--- a/pkgs/development/tools/database/ephemeralpg/default.nix | |
+++ b/pkgs/development/tools/database/ephemeralpg/default.nix | |
@@ -1,5 +1,11 @@ | |
{ lib, stdenv, fetchurl, postgresql, getopt, makeWrapper }: | |
-stdenv.mkDerivation rec { | |
+ | |
+let | |
+ postgresql_custom = postgresql.withPackages (ps: [ | |
+ ps.periods | |
+ ]); | |
+ | |
+in stdenv.mkDerivation rec { | |
pname = "ephemeralpg"; | |
version = "3.1"; | |
src = fetchurl { | |
@@ -10,7 +16,7 @@ stdenv.mkDerivation rec { | |
installPhase = '' | |
mkdir -p $out | |
PREFIX=$out make install | |
- wrapProgram $out/bin/pg_tmp --prefix PATH : ${lib.makeBinPath [ postgresql getopt ]} | |
+ wrapProgram $out/bin/pg_tmp --prefix PATH : ${lib.makeBinPath [ postgresql_custom getopt ]} | |
''; | |
meta = with lib; { | |
description = "Run tests on an isolated, temporary PostgreSQL database"; | |
-- | |
2.31.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment