Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 31 lines 934 B view raw
1{ lib, stdenv, fetchFromGitHub, postgresql }: 2 3stdenv.mkDerivation rec { 4 pname = "pg_ivm"; 5 version = "1.8"; 6 7 src = fetchFromGitHub { 8 owner = "sraoss"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-HncWX3jx9sEvxGGMMZ9QT4tDQ4JYbkNrFw2aZHgCVE8="; 12 }; 13 14 buildInputs = [ postgresql ]; 15 16 installPhase = '' 17 install -D -t $out/lib pg_ivm${postgresql.dlSuffix} 18 install -D -t $out/share/postgresql/extension *.sql 19 install -D -t $out/share/postgresql/extension *.control 20 ''; 21 22 meta = with lib; { 23 description = "Materialized views with IVM (Incremental View Maintenance) for PostgreSQL"; 24 homepage = "https://github.com/sraoss/pg_ivm"; 25 changelog = "https://github.com/sraoss/pg_ivm/releases/tag/v${version}"; 26 maintainers = with maintainers; [ ivan ]; 27 platforms = postgresql.meta.platforms; 28 license = licenses.postgresql; 29 broken = versionOlder postgresql.version "13"; 30 }; 31}