mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
991c8a8cf7
Diff: https://github.com/citusdata/pg_cron/compare/v1.6.1...v1.6.2 Changelog: https://github.com/citusdata/pg_cron/raw/v1.6.2/CHANGELOG.md
33 lines
906 B
Nix
33 lines
906 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pg_cron";
|
|
version = "1.6.2";
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "citusdata";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-/dD1gX0+RRsBFIjSV9TVk+ppPw0Jrzssl+rRZ2qAp4w=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/{lib,share/postgresql/extension}
|
|
|
|
cp *${postgresql.dlSuffix} $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;
|
|
};
|
|
}
|