nixpkgs/pkgs/servers/sql/postgresql/pg_cron/default.nix
R. RyanTM 170c6104b6 pg_cron: 1.0.2 -> 1.1.2
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
2018-10-13 21:36:56 -07:00

32 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;
};
}