2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
2019-06-10 14:05:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "temporal_tables";
|
2023-09-22 04:20:00 +00:00
|
|
|
version = "1.2.2";
|
2019-06-10 14:05:46 +00:00
|
|
|
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-01-04 17:02:58 +00:00
|
|
|
owner = "arkhipov";
|
2023-09-22 04:20:00 +00:00
|
|
|
repo = "temporal_tables";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-7+DCSPAPhsokWDq/5IXNhd7jY6FfzxxUjlsg/VJeD3k=";
|
2019-06-10 14:05:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-09-22 04:20:00 +00:00
|
|
|
install -D -t $out/lib temporal_tables${postgresql.dlSuffix}
|
|
|
|
install -D -t $out/share/postgresql/extension *.sql
|
|
|
|
install -D -t $out/share/postgresql/extension *.control
|
|
|
|
'';
|
2019-06-10 14:05:46 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-09-22 04:20:00 +00:00
|
|
|
description = "Temporal Tables PostgreSQL Extension";
|
|
|
|
homepage = "https://github.com/arkhipov/temporal_tables";
|
2019-06-10 14:05:46 +00:00
|
|
|
maintainers = with maintainers; [ ggpeti ];
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|