forked from mirrors/nixpkgs
Merge pull request #187882 from ivan/pg_ivm
postgresqlPackages.pg_ivm: init at 1.2
This commit is contained in:
commit
9533f2752c
30
pkgs/servers/sql/postgresql/ext/pg_ivm.nix
Normal file
30
pkgs/servers/sql/postgresql/ext/pg_ivm.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pg_ivm";
|
||||
version = "1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sraoss";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-q/iAMrT9npmtIKFKi/vSeYGvFSE+SgsKTP08YfBOpik=";
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Materialized views with IVM (Incremental View Maintenance) for PostgreSQL";
|
||||
homepage = "https://github.com/sraoss/pg_ivm";
|
||||
maintainers = with maintainers; [ ivan ];
|
||||
platforms = postgresql.meta.platforms;
|
||||
license = licenses.postgresql;
|
||||
broken = versionOlder postgresql.version "13";
|
||||
};
|
||||
}
|
|
@ -16,6 +16,8 @@ self: super: {
|
|||
|
||||
pg_hint_plan = super.callPackage ./ext/pg_hint_plan.nix { };
|
||||
|
||||
pg_ivm = super.callPackage ./ext/pg_ivm.nix { };
|
||||
|
||||
pg_rational = super.callPackage ./ext/pg_rational.nix { };
|
||||
|
||||
pg_repack = super.callPackage ./ext/pg_repack.nix { };
|
||||
|
|
Loading…
Reference in a new issue