pg_cron: init at 1.0.2
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
37546be900
commit
f59ffb6e83
31
pkgs/servers/sql/postgresql/pg_cron/default.nix
Normal file
31
pkgs/servers/sql/postgresql/pg_cron/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, fetchFromGitHub, postgresql }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pg_cron-${version}";
|
||||
version = "1.0.2";
|
||||
|
||||
buildInputs = [ postgresql ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "citusdata";
|
||||
repo = "pg_cron";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "0z743bbal9j0pvqskznfj0zvjsqvdl7p90d4fdrl0sc0crc3nvyx";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{lib,share/extension}
|
||||
|
||||
cp *.so $out/lib
|
||||
cp *.sql $out/share/extension
|
||||
cp *.control $out/share/extension
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Run Cron jobs through PostgreSQL";
|
||||
homepage = https://www.citusdata.com/;
|
||||
maintainers = with maintainers; [ thoughtpolice ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.postgresql;
|
||||
};
|
||||
}
|
@ -2762,6 +2762,8 @@ with pkgs;
|
||||
|
||||
pgjwt = callPackage ../servers/sql/postgresql/pgjwt {};
|
||||
|
||||
pg_cron = callPackage ../servers/sql/postgresql/pg_cron {};
|
||||
|
||||
pgtap = callPackage ../servers/sql/postgresql/pgtap {};
|
||||
|
||||
pigz = callPackage ../tools/compression/pigz { };
|
||||
|
Loading…
Reference in New Issue
Block a user