mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
e88449419a
Version 1.2.0 was released in 2017, and there have been no releases since then. However, commit 3ce22da adds support for PostgreSQL 13. Move the repository owner to `arkhipov`, since it's the one used by PGXN https://pgxn.org/dist/temporal_tables/
32 lines
849 B
Nix
32 lines
849 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "temporal_tables";
|
|
version = "unstable-2021-02-20";
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arkhipov";
|
|
repo = pname;
|
|
rev = "3ce22da51f2549e8f8b8fbf2850c63eb3a2f1fbb";
|
|
sha256 = "sha256-kmcl6vVHRZj2G5GijEyaZgDpZBDcdIUKzXv0rYYqUu4=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/{lib,share/postgresql/extension}
|
|
|
|
cp *.so $out/lib
|
|
cp *.sql $out/share/postgresql/extension
|
|
cp *.control $out/share/postgresql/extension
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Temporal Tables PostgreSQL Extension ";
|
|
homepage = "https://github.com/mlt/temporal_tables";
|
|
maintainers = with maintainers; [ ggpeti ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.bsd2;
|
|
};
|
|
}
|