forked from mirrors/nixpkgs
postgresql: Add schema version
This commit is contained in:
parent
be94d4bc25
commit
243dc10b0b
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue