Skip to content

Commit

Permalink
add oreoledb
Browse files Browse the repository at this point in the history
  • Loading branch information
angaz committed Dec 18, 2024
1 parent 41495c3 commit 489c423
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 31 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
templ = {
url = "github:a-h/templ?ref=v0.2.707";
url = "github:a-h/templ?ref=v0.2.793";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand Down Expand Up @@ -46,6 +46,35 @@
inherit (gitignore.lib) gitignoreSource;
templ = inputs.templ.packages.${system}.templ;
in {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
(final: prev: {
postgresql_16 = prev.postgresql_16.overrideAttrs(old: {
src = prev.fetchFromGitHub {
owner = "orioledb";
repo = "postgres";
rev = "patches16_32";
sha256 = "sha256-lDvALs9HH4nn2GOVFNn4QRHE/je8SmMnmQ35k8CKGjc=";
};
});
orioledb = final.buildPostgresqlExtension rec {
pname = "orioledb";
version = "beta8";

src = prev.fetchFromGitHub {
owner = "orioledb";
repo = "orioledb";
rev = version;
sha256 = "";
};

makeFlags = [ "USE_PGXS=1" ];
};
})
];
};

# Attrs for easyOverlay
overlayAttrs = {
inherit (config.packages)
Expand Down Expand Up @@ -109,6 +138,7 @@
postgresql_16
sqlite-interactive
templ
# orioledb
];
};
};
Expand Down

0 comments on commit 489c423

Please sign in to comment.