Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
35 lines
866 B
Nix
35 lines
866 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql, gitUpdater }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hypopg";
|
|
version = "1.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HypoPG";
|
|
repo = "hypopg";
|
|
rev = version;
|
|
hash = "sha256-88uKPSnITRZ2VkelI56jZ9GWazG/Rn39QlyHKJKSKMM=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gitUpdater {
|
|
ignoredVersions = "beta";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Hypothetical Indexes for PostgreSQL";
|
|
homepage = "https://hypopg.readthedocs.io";
|
|
license = licenses.postgresql;
|
|
platforms = postgresql.meta.platforms;
|
|
maintainers = with maintainers; [ bbigras ];
|
|
};
|
|
}
|