-
Notifications
You must be signed in to change notification settings - Fork 1
/
pg_ivm.nix
32 lines (26 loc) · 830 Bytes
/
pg_ivm.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchFromGitHub, postgresql_14 }:
stdenv.mkDerivation rec {
pname = "pg_ivm";
version = "1.0-alpha";
#src = fetchFromGitHub {
# owner = "sraoss";
# repo = pname;
# rev = "v${version}";
# sha256 = "sha256-1AWLcMqJNdGqFRFB6B503v82xLBXRr2C3jUx1cJKJJk=";
#};
src = /home/florian/work/pg_ivm;
buildInputs = [ postgresql_14 ];
makeFlags = [ "USE_PGXS=1" ];
installPhase = ''
install -D -t $out/lib *.so
install -D -t $out/share/postgresql/extension *.sql
install -D -t $out/share/postgresql/extension *.control
'';
meta = with lib; {
description = "Incremental View Maintenance as a postgres extension";
homepage = "https://github.com/sraoss/pg_ivm/";
license = licenses.postgresql;
platforms = postgresql_14.meta.platforms;
maintainers = [];
};
}