2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
2020-02-14 16:43:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "periods";
|
2020-09-29 00:04:52 +01:00
|
|
|
version = "1.2";
|
2020-02-14 16:43:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xocolatl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-09-29 00:04:52 +01:00
|
|
|
sha256 = "13aix61qzlb7cs042dz4x0z4sc2xayg4nzi2cks46zibxm5i4gzm";
|
2020-02-14 16:43:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -t $out/lib *.so
|
|
|
|
install -D -t $out/share/postgresql/extension *.sql
|
|
|
|
install -D -t $out/share/postgresql/extension *.control
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-14 16:43:31 +00:00
|
|
|
description = "PostgreSQL extension implementing SQL standard functionality for PERIODs and SYSTEM VERSIONING";
|
|
|
|
homepage = "https://github.com/xocolatl/periods";
|
|
|
|
maintainers = with maintainers; [ ivan ];
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
license = licenses.postgresql;
|
|
|
|
broken = versionOlder postgresql.version "9.5";
|
|
|
|
};
|
|
|
|
}
|