mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
31 lines
835 B
Nix
31 lines
835 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pg_ivm";
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sraoss";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-AIH0BKk3y7F885IlC9pEyAubIgNSElpjU8nL6gl98FU=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|