2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
29 lines
762 B
Nix
29 lines
762 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hypopg";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HypoPG";
|
|
repo = "hypopg";
|
|
rev = version;
|
|
hash = "sha256-YzQnkQi9BlDryUySnWHWeTanhgfVUXjHjOqj+nQucCY=";
|
|
};
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
installPhase = ''
|
|
install -D -t $out/lib *${postgresql.dlSuffix}
|
|
install -D -t $out/share/postgresql/extension *.control
|
|
install -D -t $out/share/postgresql/extension *.sql
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Hypothetical Indexes for PostgreSQL";
|
|
homepage = "https://hypopg.readthedocs.io";
|
|
license = licenses.postgresql;
|
|
platforms = postgresql.meta.platforms;
|
|
maintainers = with maintainers; [ bbigras ];
|
|
};
|
|
}
|