nixpkgs/pkgs/servers/sql/postgresql/ext/temporal_tables.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
826 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, postgresql }:
2019-06-10 14:05:46 +00:00
stdenv.mkDerivation rec {
pname = "temporal_tables";
version = "1.2.2";
2019-06-10 14:05:46 +00:00
buildInputs = [ postgresql ];
src = fetchFromGitHub {
owner = "arkhipov";
repo = "temporal_tables";
rev = "v${version}";
sha256 = "sha256-7+DCSPAPhsokWDq/5IXNhd7jY6FfzxxUjlsg/VJeD3k=";
2019-06-10 14:05:46 +00:00
};
installPhase = ''
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
meta = with lib; {
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;
};
}