nixpkgs/pkgs/servers/sql/postgresql/pg_repack/default.nix
R. RyanTM 62f0d64640 pg_repack: 1.4.2 -> 1.4.3
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/pg_repack/versions.

These checks were done:

- built on NixOS
- /nix/store/08l7mgizcwhz3iiq7q53529mnj0z9apl-pg_repack-1.4.3/bin/pg_repack passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 1 of 1 passed binary check by having the new version present in output.
- found 1.4.3 with grep in /nix/store/08l7mgizcwhz3iiq7q53529mnj0z9apl-pg_repack-1.4.3
- directory tree listing: https://gist.github.com/98848a9a560aa1d4de3e164197944d32
- du listing: https://gist.github.com/cfef5141050a394c88b04b839ec17fdf
2018-05-22 21:06:52 -07:00

36 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline }:
stdenv.mkDerivation rec {
name = "pg_repack-${version}";
version = "1.4.3";
buildInputs = [ postgresql openssl zlib readline ];
src = fetchFromGitHub {
owner = "reorg";
repo = "pg_repack";
rev = "refs/tags/ver_${version}";
sha256 = "1mmd22nfaxjwnbl3i95f3ivmjvfqwdflgaczlg3129dbpwg265xr";
};
installPhase = ''
install -D bin/pg_repack -t $out/bin/
install -D lib/pg_repack.so -t $out/lib/
install -D lib/{pg_repack--${version}.sql,pg_repack.control} -t $out/share/extension
'';
meta = with stdenv.lib; {
description = "Reorganize tables in PostgreSQL databases with minimal locks";
longDescription = ''
pg_repack is a PostgreSQL extension which lets you remove bloat from tables and indexes, and optionally restore
the physical order of clustered indexes. Unlike CLUSTER and VACUUM FULL it works online, without holding an
exclusive lock on the processed tables during processing. pg_repack is efficient to boot,
with performance comparable to using CLUSTER directly.
'';
license = licenses.bsd3;
maintainers = with maintainers; [ danbst ];
inherit (postgresql.meta) platforms;
inherit (src.meta) homepage;
};
}