mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
Unify the PostgreSQL expressions again
This commit is contained in:
parent
b89b6b2a7b
commit
0770a49d8c
@ -1,38 +0,0 @@
|
|||||||
{ stdenv, fetchurl, zlib, readline, openssl }:
|
|
||||||
|
|
||||||
let version = "9.0.22"; in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "postgresql-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
|
||||||
sha256 = "19gq6axjhvlr5zlrzwnll1fbrvai4xh0nb1jki6gmmschl6v5m4l";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [ "out" "doc" ];
|
|
||||||
|
|
||||||
buildInputs = [ zlib readline openssl ];
|
|
||||||
|
|
||||||
LC_ALL = "C";
|
|
||||||
|
|
||||||
configureFlags = [ "--with-openssl" ];
|
|
||||||
|
|
||||||
patches = [ ./less-is-more.patch ];
|
|
||||||
|
|
||||||
postInstall = ''mkdir -p $doc'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
inherit readline;
|
|
||||||
psqlSchema = "9.0";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = http://www.postgresql.org/;
|
|
||||||
description = "A powerful, open source object-relational database system";
|
|
||||||
license = licenses.postgresql;
|
|
||||||
maintainers = [ maintainers.ocharles ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
hydraPlatforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,45 +0,0 @@
|
|||||||
{ stdenv, fetchurl, zlib, readline, openssl }:
|
|
||||||
|
|
||||||
let version = "9.1.18"; in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "postgresql-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
|
||||||
sha256 = "1a44hmcvfaa8j169ladsibmvjakw6maaxqkzz1ab8139cqkda9i7";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [ "out" "doc" ];
|
|
||||||
|
|
||||||
buildInputs = [ zlib readline openssl ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
LC_ALL = "C";
|
|
||||||
|
|
||||||
configureFlags = [ "--with-openssl" ];
|
|
||||||
|
|
||||||
patches = [ ./less-is-more.patch ];
|
|
||||||
|
|
||||||
postInstall =
|
|
||||||
''
|
|
||||||
mkdir -p $out/share/man
|
|
||||||
cp -rvd doc/src/sgml/man1 $out/share/man
|
|
||||||
mkdir -p $doc
|
|
||||||
'';
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
inherit readline;
|
|
||||||
psqlSchema = "9.1";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = http://www.postgresql.org/;
|
|
||||||
description = "A powerful, open source object-relational database system";
|
|
||||||
license = licenses.postgresql;
|
|
||||||
maintainers = [ maintainers.ocharles ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
hydraPlatforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,42 +0,0 @@
|
|||||||
{ stdenv, fetchurl, zlib, readline, openssl }:
|
|
||||||
|
|
||||||
let version = "9.2.13"; in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "postgresql-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
|
||||||
sha256 = "0i3avdr8mnvn6ldkx0hc4jmclhisb2338hzs0j2m03wck8hddjsx";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [ "out" "doc" ];
|
|
||||||
|
|
||||||
buildInputs = [ zlib readline openssl ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
makeFlags = [ "world" ];
|
|
||||||
|
|
||||||
configureFlags = stdenv.lib.optionals (!stdenv.isCygwin) [ "--with-openssl" ];
|
|
||||||
|
|
||||||
patches = [ ./disable-resolve_symlinks.patch ./less-is-more.patch ];
|
|
||||||
|
|
||||||
installTargets = [ "install-world" ];
|
|
||||||
|
|
||||||
LC_ALL = "C";
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
inherit readline;
|
|
||||||
psqlSchema = "9.2";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = http://www.postgresql.org/;
|
|
||||||
description = "A powerful, open source object-relational database system";
|
|
||||||
license = licenses.postgresql;
|
|
||||||
maintainers = [ maintainers.ocharles ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
hydraPlatforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,46 +0,0 @@
|
|||||||
{ stdenv, fetchurl, zlib, readline, libossp_uuid, openssl}:
|
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
let version = "9.3.9"; in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "postgresql-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
|
||||||
sha256 = "0j85j69rf54cwz5yhrhk4ca22b82990j5sqb8cr1fl9843nd0fzp";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [ "out" "doc" ];
|
|
||||||
|
|
||||||
buildInputs = [ zlib readline openssl ]
|
|
||||||
++ optionals (!stdenv.isDarwin) [ libossp_uuid ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
makeFlags = [ "world" ];
|
|
||||||
|
|
||||||
configureFlags = [ "--with-openssl" ]
|
|
||||||
++ optional (!stdenv.isDarwin) "--with-ossp-uuid";
|
|
||||||
|
|
||||||
patches = [ ./disable-resolve_symlinks.patch ./less-is-more.patch ];
|
|
||||||
|
|
||||||
installTargets = [ "install-world" ];
|
|
||||||
|
|
||||||
LC_ALL = "C";
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
inherit readline;
|
|
||||||
psqlSchema = "9.3";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = http://www.postgresql.org/;
|
|
||||||
description = "A powerful, open source object-relational database system";
|
|
||||||
license = licenses.postgresql;
|
|
||||||
maintainers = [ maintainers.ocharles ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
hydraPlatforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,55 +0,0 @@
|
|||||||
{ stdenv, fetchurl, zlib, readline, libossp_uuid, openssl }:
|
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
let version = "9.4.4"; in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "postgresql-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
|
||||||
sha256 = "04q07g209y99xzjh88y52qpvz225rxwifv8nzp3bxzfni2bdk3jk";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [ "out" "doc" ];
|
|
||||||
|
|
||||||
buildInputs = [ zlib readline openssl ]
|
|
||||||
++ optionals (!stdenv.isDarwin) [ libossp_uuid ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
makeFlags = [ "world" ];
|
|
||||||
|
|
||||||
configureFlags = [ "--with-openssl" ]
|
|
||||||
++ optional (stdenv.isDarwin) "--with-uuid=e2fs"
|
|
||||||
++ optional (!stdenv.isDarwin) "--with-ossp-uuid";
|
|
||||||
|
|
||||||
patches = [ ./disable-resolve_symlinks-94.patch ./less-is-more.patch ];
|
|
||||||
|
|
||||||
installTargets = [ "install-world" ];
|
|
||||||
|
|
||||||
LC_ALL = "C";
|
|
||||||
|
|
||||||
postInstall =
|
|
||||||
''
|
|
||||||
# Prevent a retained dependency on gcc-wrapper.
|
|
||||||
substituteInPlace $out/lib/pgxs/src/Makefile.global --replace ${stdenv.cc}/bin/ld ld
|
|
||||||
'';
|
|
||||||
|
|
||||||
disallowedReferences = [ stdenv.cc ];
|
|
||||||
|
|
||||||
passthru = {
|
|
||||||
inherit readline;
|
|
||||||
psqlSchema = "9.4";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = http://www.postgresql.org/;
|
|
||||||
description = "A powerful, open source object-relational database system";
|
|
||||||
license = licenses.postgresql;
|
|
||||||
maintainers = [ maintainers.ocharles ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
hydraPlatforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
91
pkgs/servers/sql/postgresql/default.nix
Normal file
91
pkgs/servers/sql/postgresql/default.nix
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
{ lib, stdenv, fetchurl, zlib, readline, libossp_uuid, openssl }:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
common = { version, sha256, psqlSchema } @ args: stdenv.mkDerivation (rec {
|
||||||
|
name = "postgresql-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
||||||
|
inherit sha256;
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "doc" ];
|
||||||
|
|
||||||
|
buildInputs =
|
||||||
|
[ zlib readline openssl ]
|
||||||
|
++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
makeFlags = [ "world" ];
|
||||||
|
|
||||||
|
configureFlags =
|
||||||
|
[ "--with-openssl" ]
|
||||||
|
++ lib.optional (stdenv.isDarwin) "--with-uuid=e2fs"
|
||||||
|
++ lib.optional (!stdenv.isDarwin) "--with-ossp-uuid";
|
||||||
|
|
||||||
|
patches =
|
||||||
|
[ (if lib.versionAtLeast version "9.4" then ./disable-resolve_symlinks-94.patch else ./disable-resolve_symlinks.patch)
|
||||||
|
./less-is-more.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
installTargets = [ "install-world" ];
|
||||||
|
|
||||||
|
LC_ALL = "C";
|
||||||
|
|
||||||
|
postInstall =
|
||||||
|
''
|
||||||
|
# Prevent a retained dependency on gcc-wrapper.
|
||||||
|
substituteInPlace $out/lib/pgxs/src/Makefile.global --replace ${stdenv.cc}/bin/ld ld
|
||||||
|
'';
|
||||||
|
|
||||||
|
disallowedReferences = [ stdenv.cc ];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
inherit readline psqlSchema;
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = http://www.postgresql.org/;
|
||||||
|
description = "A powerful, open source object-relational database system";
|
||||||
|
license = licenses.postgresql;
|
||||||
|
maintainers = [ maintainers.ocharles ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
hydraPlatforms = platforms.linux;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
in {
|
||||||
|
|
||||||
|
postgresql90 = common {
|
||||||
|
version = "9.0.22";
|
||||||
|
psqlSchema = "9.0";
|
||||||
|
sha256 = "19gq6axjhvlr5zlrzwnll1fbrvai4xh0nb1jki6gmmschl6v5m4l";
|
||||||
|
};
|
||||||
|
|
||||||
|
postgresql91 = common {
|
||||||
|
version = "9.1.18";
|
||||||
|
psqlSchema = "9.1";
|
||||||
|
sha256 = "1a44hmcvfaa8j169ladsibmvjakw6maaxqkzz1ab8139cqkda9i7";
|
||||||
|
};
|
||||||
|
|
||||||
|
postgresql92 = common {
|
||||||
|
version = "9.2.13";
|
||||||
|
psqlSchema = "9.2";
|
||||||
|
sha256 = "0i3avdr8mnvn6ldkx0hc4jmclhisb2338hzs0j2m03wck8hddjsx";
|
||||||
|
};
|
||||||
|
|
||||||
|
postgresql93 = common {
|
||||||
|
version = "9.3.9";
|
||||||
|
psqlSchema = "9.3";
|
||||||
|
sha256 = "0j85j69rf54cwz5yhrhk4ca22b82990j5sqb8cr1fl9843nd0fzp";
|
||||||
|
};
|
||||||
|
|
||||||
|
postgresql94 = common {
|
||||||
|
version = "9.4.4";
|
||||||
|
psqlSchema = "9.4";
|
||||||
|
sha256 = "04q07g209y99xzjh88y52qpvz225rxwifv8nzp3bxzfni2bdk3jk";
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -9109,15 +9109,12 @@ let
|
|||||||
|
|
||||||
postgresql = postgresql94;
|
postgresql = postgresql94;
|
||||||
|
|
||||||
postgresql90 = callPackage ../servers/sql/postgresql/9.0.x.nix { };
|
inherit (callPackages ../servers/sql/postgresql { })
|
||||||
|
postgresql90
|
||||||
postgresql91 = callPackage ../servers/sql/postgresql/9.1.x.nix { };
|
postgresql91
|
||||||
|
postgresql92
|
||||||
postgresql92 = callPackage ../servers/sql/postgresql/9.2.x.nix { };
|
postgresql93
|
||||||
|
postgresql94;
|
||||||
postgresql93 = callPackage ../servers/sql/postgresql/9.3.x.nix { };
|
|
||||||
|
|
||||||
postgresql94 = callPackage ../servers/sql/postgresql/9.4.x.nix { };
|
|
||||||
|
|
||||||
postgresql_jdbc = callPackage ../servers/sql/postgresql/jdbc { };
|
postgresql_jdbc = callPackage ../servers/sql/postgresql/jdbc { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user