2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
2019-06-10 15:05:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "temporal_tables";
|
|
|
|
version = "1.2.0";
|
|
|
|
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mlt";
|
|
|
|
repo = pname;
|
|
|
|
rev = "6cc86eb03d618d6b9fc09ae523f1a1e5228d22b5";
|
|
|
|
sha256 = "0ykv37rm511n5955mbh9dcp7pgg88z1nwgszav7z6pziaj3nba8x";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-14 23:36:59 +01:00
|
|
|
mkdir -p $out/{lib,share/postgresql/extension}
|
2019-06-10 15:05:46 +01:00
|
|
|
|
|
|
|
cp *.so $out/lib
|
2019-07-01 15:18:03 +01:00
|
|
|
cp *.sql $out/share/postgresql/extension
|
|
|
|
cp *.control $out/share/postgresql/extension
|
2019-06-10 15:05:46 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-10 15:05:46 +01:00
|
|
|
description = "Temporal Tables PostgreSQL Extension ";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mlt/temporal_tables";
|
2019-06-10 15:05:46 +01:00
|
|
|
maintainers = with maintainers; [ ggpeti ];
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|