diff options
author | William A. Kennington III <william@wkennington.com> | 2015-07-29 10:23:08 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-07-29 10:23:08 -0700 |
commit | aaef42ab8c6e92797a9db5dd99c5f862692b47a3 (patch) | |
tree | 7ad6687e10bb4b5fa4f73c73f9297f97e6816533 /pkgs/servers/sql | |
parent | 78e6b78bc63d49cb4b8e9a55ad6edec836d5a63a (diff) | |
parent | af3261f7a266d38f03e3d5d8a117d5f3458bcb85 (diff) | |
download | nixlib-aaef42ab8c6e92797a9db5dd99c5f862692b47a3.tar nixlib-aaef42ab8c6e92797a9db5dd99c5f862692b47a3.tar.gz nixlib-aaef42ab8c6e92797a9db5dd99c5f862692b47a3.tar.bz2 nixlib-aaef42ab8c6e92797a9db5dd99c5f862692b47a3.tar.lz nixlib-aaef42ab8c6e92797a9db5dd99c5f862692b47a3.tar.xz nixlib-aaef42ab8c6e92797a9db5dd99c5f862692b47a3.tar.zst nixlib-aaef42ab8c6e92797a9db5dd99c5f862692b47a3.zip |
Merge branch 'master.upstream' into staging.upstream
Diffstat (limited to 'pkgs/servers/sql')
-rw-r--r-- | pkgs/servers/sql/postgresql/9.0.x.nix | 36 | ||||
-rw-r--r-- | pkgs/servers/sql/postgresql/9.1.x.nix | 44 | ||||
-rw-r--r-- | pkgs/servers/sql/postgresql/9.2.x.nix | 42 | ||||
-rw-r--r-- | pkgs/servers/sql/postgresql/9.3.x.nix | 46 | ||||
-rw-r--r-- | pkgs/servers/sql/postgresql/9.4.x.nix | 47 | ||||
-rw-r--r-- | pkgs/servers/sql/postgresql/default.nix | 91 |
6 files changed, 91 insertions, 215 deletions
diff --git a/pkgs/servers/sql/postgresql/9.0.x.nix b/pkgs/servers/sql/postgresql/9.0.x.nix deleted file mode 100644 index 4249b40c5c4a..000000000000 --- a/pkgs/servers/sql/postgresql/9.0.x.nix +++ /dev/null @@ -1,36 +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 ]; - - 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; - }; -} diff --git a/pkgs/servers/sql/postgresql/9.1.x.nix b/pkgs/servers/sql/postgresql/9.1.x.nix deleted file mode 100644 index 09f468b50bb5..000000000000 --- a/pkgs/servers/sql/postgresql/9.1.x.nix +++ /dev/null @@ -1,44 +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 - ''; - - 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; - }; -} diff --git a/pkgs/servers/sql/postgresql/9.2.x.nix b/pkgs/servers/sql/postgresql/9.2.x.nix deleted file mode 100644 index 6b0792f50cd3..000000000000 --- a/pkgs/servers/sql/postgresql/9.2.x.nix +++ /dev/null @@ -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; - }; -} diff --git a/pkgs/servers/sql/postgresql/9.3.x.nix b/pkgs/servers/sql/postgresql/9.3.x.nix deleted file mode 100644 index d45cdadf1e9f..000000000000 --- a/pkgs/servers/sql/postgresql/9.3.x.nix +++ /dev/null @@ -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; - }; -} diff --git a/pkgs/servers/sql/postgresql/9.4.x.nix b/pkgs/servers/sql/postgresql/9.4.x.nix deleted file mode 100644 index d09a65282225..000000000000 --- a/pkgs/servers/sql/postgresql/9.4.x.nix +++ /dev/null @@ -1,47 +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"; - - 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; - }; -} diff --git a/pkgs/servers/sql/postgresql/default.nix b/pkgs/servers/sql/postgresql/default.nix new file mode 100644 index 000000000000..cf4519a82327 --- /dev/null +++ b/pkgs/servers/sql/postgresql/default.nix @@ -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"; + }; + +} |