mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
81beb99b82
Diff: https://github.com/sraoss/pg_ivm/compare/v1.6...v1.7 Changelog: https://github.com/sraoss/pg_ivm/releases/tag/v1.7
32 lines
934 B
Nix
32 lines
934 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pg_ivm";
|
|
version = "1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sraoss";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-uSYhNUfd4mw7mGGAcP43X/0v/bNp6SdZjPzktGONgaQ=";
|
|
};
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
installPhase = ''
|
|
install -D -t $out/lib pg_ivm${postgresql.dlSuffix}
|
|
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";
|
|
changelog = "https://github.com/sraoss/pg_ivm/releases/tag/v${version}";
|
|
maintainers = with maintainers; [ ivan ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.postgresql;
|
|
broken = versionOlder postgresql.version "13";
|
|
};
|
|
}
|