fix?(package): postgreact: ~stir the stupid shit till it works [1]

This commit is contained in:
zerosummed
2025-04-17 07:01:23 +03:00
parent fb8fa34ff2
commit 90f588843a
2 changed files with 21 additions and 23 deletions

View File

@@ -428,7 +428,7 @@
doCheck = false; doCheck = false;
}; };
buildPlHaskellExt = versionSuffix: let buildPlHaskellExt = versionSuffix: let
version = "4.0"; version = "4.0"; # XXX(nrv): What the hell is this? What the hell are all the `version` mentions below? Is it that?
in in
buildPostgresqlExtension { buildPostgresqlExtension {
postgresql = prev."postgresql_${versionSuffix}"; postgresql = prev."postgresql_${versionSuffix}";
@@ -457,6 +457,22 @@
}; };
nativeBuildInputs = with prev; [pkg-config curl]; nativeBuildInputs = with prev; [pkg-config curl];
}; };
buildPostgreactExt = versionSuffix:
buildPostgresqlExtension {
postgresql = prev."postgresql_${versionSuffix}";
} (rec {
pname = "postgreact";
version = "1.0";
src = ./package/c/${pname};
nativeBuildInputs = with prev; [pkg-config]; # ???
meta = with lib; {
description = "PostgreSQL extension for simple templating.";
homepage = "https://github.com/hectic-lab/util.nix";
license = licenses.asl20;
platforms = postgresql.meta.platforms;
maintainers = with maintainers; [];
};
});
in { in {
hectic = self.packages.${prev.system}; hectic = self.packages.${prev.system};
postgresql_17 = postgresql_17 =
@@ -490,9 +506,9 @@
prev.postgresql_15.pkgs prev.postgresql_15.pkgs
// { // {
http = buildHttpExt "15"; http = buildHttpExt "15";
postgreact = buildPostgreactExt "15";
pg_smtp_client = buildSmtpExt "15"; pg_smtp_client = buildSmtpExt "15";
plhaskell = buildPlHaskellExt "15"; plhaskell = buildPlHaskellExt "15";
postgreact = self.packages.${prev.system}.postgreact.override {postgresql = prev.postgresql_17;};
}; };
}; };
postgresql_14 = postgresql_14 =

View File

@@ -1,30 +1,12 @@
{ {
lib, lib,
stdenv, }: {
fetchFromGitHub,
curl,
postgresql,
buildPostgresqlExtension,
}:
buildPostgresqlExtension rec {
pname = "postgreact"; pname = "postgreact";
version = "1.0"; version = "1.0";
src = ./.;
buildInputs = [ buildInputs = [
]; ];
EXTENSION = pname;
EXTENSION_VERSION = version;
src = ./.;
env.NIX_CFLAGS_COMPILE = "-Wno-error";
meta = with lib; {
description = "PostgreSQL extension for simple templating.";
homepage = "https://github.com/hectic-lab/util.nix";
license = licenses.asl20;
platforms = postgresql.meta.platforms;
maintainers = with maintainers; [];
};
} }