170c6104b6
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/pg_cron/versions
31 lines
777 B
Nix
31 lines
777 B
Nix
{ stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pg_cron-${version}";
|
|
version = "1.1.2";
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "citusdata";
|
|
repo = "pg_cron";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "0n74dx1wkg9qxvjhnx03028465ap3p97v2kzqww833dws1wqk5m1";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|