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-01-04 17:02:58 +00:00
|
|
|
version = "unstable-2021-02-20";
|
2019-06-10 14:05:46 +00:00
|
|
|
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-01-04 17:02:58 +00:00
|
|
|
owner = "arkhipov";
|
2019-06-10 14:05:46 +00:00
|
|
|
repo = pname;
|
2023-01-04 17:02:58 +00:00
|
|
|
rev = "3ce22da51f2549e8f8b8fbf2850c63eb3a2f1fbb";
|
|
|
|
sha256 = "sha256-kmcl6vVHRZj2G5GijEyaZgDpZBDcdIUKzXv0rYYqUu4=";
|
2019-06-10 14:05:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-14 22:36:59 +00:00
|
|
|
mkdir -p $out/{lib,share/postgresql/extension}
|
2019-06-10 14:05:46 +00:00
|
|
|
|
|
|
|
cp *.so $out/lib
|
2019-07-01 14:18:03 +00:00
|
|
|
cp *.sql $out/share/postgresql/extension
|
|
|
|
cp *.control $out/share/postgresql/extension
|
2019-06-10 14:05:46 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-10 14:05:46 +00:00
|
|
|
description = "Temporal Tables PostgreSQL Extension ";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mlt/temporal_tables";
|
2019-06-10 14:05:46 +00:00
|
|
|
maintainers = with maintainers; [ ggpeti ];
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|