mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
33 lines
893 B
Nix
33 lines
893 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pg_cron";
|
|
version = "1.3.1";
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "citusdata";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0vhqm9xi84v21ijlbi3fznj799j81mmc9kaawhwn0djhxcs2symd";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/{lib,share/postgresql/extension}
|
|
|
|
cp *.so $out/lib
|
|
cp *.sql $out/share/postgresql/extension
|
|
cp *.control $out/share/postgresql/extension
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Run Cron jobs through PostgreSQL";
|
|
homepage = "https://github.com/citusdata/pg_cron";
|
|
changelog = "https://github.com/citusdata/pg_cron/raw/v${version}/CHANGELOG.md";
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.postgresql;
|
|
};
|
|
}
|