forked from mirrors/nixpkgs
postgresql: add debug versions
This commit is contained in:
parent
d04287f130
commit
2d9c6679d1
|
@ -13,7 +13,7 @@ let
|
|||
, this, self, newScope, buildEnv
|
||||
|
||||
# source specification
|
||||
, version, sha256, psqlSchema
|
||||
, version, sha256, psqlSchema, enableDebug ? false
|
||||
}:
|
||||
let
|
||||
atLeast = lib.versionAtLeast version;
|
||||
|
@ -55,6 +55,7 @@ let
|
|||
"--libdir=$(lib)/lib"
|
||||
"--with-system-tzdata=${tzdata}/share/zoneinfo"
|
||||
(lib.optionalString enableSystemd "--with-systemd")
|
||||
(lib.optionalString enableDebug "--enable-debug")
|
||||
(if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid")
|
||||
] ++ lib.optionals icuEnabled [ "--with-icu" ];
|
||||
|
||||
|
@ -191,6 +192,15 @@ in self: {
|
|||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_9_5_debug = self.callPackage generic {
|
||||
version = "9.5.23";
|
||||
psqlSchema = "9.5";
|
||||
sha256 = "0rl31jc3kg2wq6hazyd297gnmx3cibjvivllbsivii2m6dzgl573";
|
||||
this = self.postgresql_9_5;
|
||||
enableDebug = true;
|
||||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_9_6 = self.callPackage generic {
|
||||
version = "9.6.19";
|
||||
psqlSchema = "9.6";
|
||||
|
@ -199,6 +209,15 @@ in self: {
|
|||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_9_6_debug = self.callPackage generic {
|
||||
version = "9.6.19";
|
||||
psqlSchema = "9.6";
|
||||
sha256 = "1c2wnl5bbpjs1s1rpzvlnzsqlpb0p823zw7s38nhpgnxrja3myb1";
|
||||
this = self.postgresql_9_6;
|
||||
enableDebug = true;
|
||||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_10 = self.callPackage generic {
|
||||
version = "10.14";
|
||||
psqlSchema = "10.0"; # should be 10, but changing it is invasive
|
||||
|
@ -207,6 +226,15 @@ in self: {
|
|||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_10_debug = self.callPackage generic {
|
||||
version = "10.14";
|
||||
psqlSchema = "10.0"; # should be 10, but changing it is invasive
|
||||
sha256 = "0fxj30jvwq5pqpbj97vhlxgmn2ah59a78s9jyjr7vxyqj7sdh71q";
|
||||
this = self.postgresql_10;
|
||||
enableDebug = true;
|
||||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_11 = self.callPackage generic {
|
||||
version = "11.9";
|
||||
psqlSchema = "11.1"; # should be 11, but changing it is invasive
|
||||
|
@ -215,6 +243,15 @@ in self: {
|
|||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_11_debug = self.callPackage generic {
|
||||
version = "11.9";
|
||||
psqlSchema = "11.1"; # should be 11, but changing it is invasive
|
||||
sha256 = "0db6pfphc5rp12abnkvv2l9pbl7bdyf3hhiwj8ghjwh35skqlq9m";
|
||||
this = self.postgresql_11;
|
||||
enableDebug = true;
|
||||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_12 = self.callPackage generic {
|
||||
version = "12.4";
|
||||
psqlSchema = "12";
|
||||
|
@ -223,6 +260,15 @@ in self: {
|
|||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_12_debug = self.callPackage generic {
|
||||
version = "12.4";
|
||||
psqlSchema = "12";
|
||||
sha256 = "1k06wryy8p4s1fim9qafcjlak3f58l0wqaqnrccr9x9j5jz3zsdy";
|
||||
this = self.postgresql_12;
|
||||
enableDebug = true;
|
||||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_13 = self.callPackage generic {
|
||||
version = "13.0";
|
||||
psqlSchema = "13";
|
||||
|
@ -231,4 +277,13 @@ in self: {
|
|||
inherit self;
|
||||
};
|
||||
|
||||
postgresql_13_debug = self.callPackage generic {
|
||||
version = "13.0";
|
||||
psqlSchema = "13";
|
||||
sha256 = "15i2b7m9a9430idqdgvrcyx66cpxz0v2d81nfqcm8ss3inz51rw0";
|
||||
this = self.postgresql_13;
|
||||
enableDebug = true;
|
||||
inherit self;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -17213,11 +17213,17 @@ in
|
|||
|
||||
inherit (import ../servers/sql/postgresql pkgs)
|
||||
postgresql_9_5
|
||||
postgresql_9_5_debug
|
||||
postgresql_9_6
|
||||
postgresql_9_6_debug
|
||||
postgresql_10
|
||||
postgresql_10_debug
|
||||
postgresql_11
|
||||
postgresql_11_debug
|
||||
postgresql_12
|
||||
postgresql_12_debug
|
||||
postgresql_13
|
||||
postgresql_13_debug
|
||||
;
|
||||
postgresql = postgresql_11.override { this = postgresql; };
|
||||
postgresqlPackages = recurseIntoAttrs postgresql.pkgs;
|
||||
|
|
Loading…
Reference in a new issue