pg_repack: reindent to 2-spaces
More or less all the Postgres code uses this, so it's nice to be consistent. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
b5be88c97a
commit
cecee87f39
|
@ -1,35 +1,35 @@
|
||||||
{ stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline }:
|
{ stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pg_repack-${version}";
|
name = "pg_repack-${version}";
|
||||||
version = "1.4.4";
|
version = "1.4.4";
|
||||||
|
|
||||||
buildInputs = [ postgresql openssl zlib readline ];
|
buildInputs = [ postgresql openssl zlib readline ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "reorg";
|
owner = "reorg";
|
||||||
repo = "pg_repack";
|
repo = "pg_repack";
|
||||||
rev = "refs/tags/ver_${version}";
|
rev = "refs/tags/ver_${version}";
|
||||||
sha256 = "0ynsmsxfkcp82ccpz2nrgg8wiil8yxqigvw6425lx8v80h5lszbw";
|
sha256 = "0ynsmsxfkcp82ccpz2nrgg8wiil8yxqigvw6425lx8v80h5lszbw";
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D bin/pg_repack -t $out/bin/
|
install -D bin/pg_repack -t $out/bin/
|
||||||
install -D lib/pg_repack.so -t $out/lib/
|
install -D lib/pg_repack.so -t $out/lib/
|
||||||
install -D lib/{pg_repack--${version}.sql,pg_repack.control} -t $out/share/extension
|
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;
|
||||||
meta = with stdenv.lib; {
|
maintainers = with maintainers; [ danbst ];
|
||||||
description = "Reorganize tables in PostgreSQL databases with minimal locks";
|
inherit (postgresql.meta) platforms;
|
||||||
longDescription = ''
|
inherit (src.meta) homepage;
|
||||||
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;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue