3
0
Fork 0
forked from mirrors/nixpkgs

postgresql: Add schema version

This commit is contained in:
William A. Kennington III 2015-05-23 19:06:29 -07:00
parent be94d4bc25
commit 243dc10b0b
4 changed files with 10 additions and 5 deletions

View file

@ -1,7 +1,8 @@
{ callPackage, fetchurl, ... } @ args:
callPackage ./generic.nix (args // rec {
version = "8.4.22";
psqlSchema = "8.4";
version = "${psqlSchema}.22";
src = fetchurl {
url = "mirror://postgresql/source/v${version}/postgresql-${version}.tar.bz2";

View file

@ -1,7 +1,8 @@
{ callPackage, fetchurl, ... } @ args:
callPackage ./generic.nix (args // rec {
version = "9.0.20";
psqlSchema = "9.0";
version = "${psqlSchema}.20";
src = fetchurl {
url = "mirror://postgresql/source/v${version}/postgresql-${version}.tar.bz2";

View file

@ -1,7 +1,8 @@
{ callPackage, fetchurl, ... } @ args:
callPackage ./generic.nix (args // rec {
version = "9.1.16";
psqlSchema = "9.1";
version = "${psqlSchema}.16";
src = fetchurl {
url = "mirror://postgresql/source/v${version}/postgresql-${version}.tar.bz2";

View file

@ -10,7 +10,7 @@
, walBlockSizeKB ? 8, walSegmentSizeMB ? 16
# Version specific arguments
, version, src
, version, src, psqlSchema
, ...
}:
@ -90,5 +90,7 @@ stdenv.mkDerivation rec {
hydraPlatforms = platforms.linux;
};
passthru = { inherit readline; };
passthru = {
inherit readline psqlSchema;
};
}