3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/sql/postgresql/ext/pg_cron.nix

32 lines
777 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, postgresql }:
stdenv.mkDerivation rec {
name = "pg_cron-${version}";
version = "1.1.3";
buildInputs = [ postgresql ];
src = fetchFromGitHub {
owner = "citusdata";
repo = "pg_cron";
rev = "refs/tags/v${version}";
sha256 = "0r33b0c9gdx2lfhrp7lpkif3j8qbzxmnywkcs2rcxwf9qzrb4vnj";
};
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;
};
}