Skip to content

Commit

Permalink
postgresqlPackages.promscale_extension: remove deprecated and broken …
Browse files Browse the repository at this point in the history
…package

postgresql14Packages.promscale_extension breaks with:

  Error:
    0: `pgx-0.6.1` shouldn't be used with `cargo-pgx-0.7.4`,
    please use `pgx = "~0.7.4"` in your `Cargo.toml`.

However, pinning cargo-pgx to 0_6_1 via the following

  buildPgxExtension.override { cargo-pgx = cargo-pgx_0_6_1; }

does not work either, because the build then fails with:

  thread 'main' panicked at /build/promscale_extension-0.8.0-vendor.tar.gz/proc-macro2/src/fallback.rs:756:9:
  "__mbstate_t_union_(unnamed_at_/nix/store/ij144ma6vs8acil8r9hgr8xkb1dp9azg-glibc-2_39-5-dev/include/bits/types/__mbstate_t_h_16_3)" is not a valid Ident

This seems to be related to [1], which indicates that this is a
problem with newer LLVM / clang toolchains.

At the same time th upstream package is deprecated / archived since
the 2nd of April 2024 [2]. Additionally this package is unfree and
thus very unlikely to be forked. Since we can't expect this to be
fixed, the only sensible thing to do is to remove the package.

[1]: rust-lang/rust-bindgen#2312
[2]: timescale/promscale#1836
  • Loading branch information
wolfgangwalther committed Apr 20, 2024
1 parent 0d56eca commit 945a3bb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 122 deletions.
1 change: 0 additions & 1 deletion nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,6 @@ in {
tiddlywiki = handleTest ./tiddlywiki.nix {};
tigervnc = handleTest ./tigervnc.nix {};
timescaledb = handleTest ./timescaledb.nix {};
promscale = handleTest ./promscale.nix {};
timezone = handleTest ./timezone.nix {};
tinc = handleTest ./tinc {};
tinydns = handleTest ./tinydns.nix {};
Expand Down
60 changes: 0 additions & 60 deletions nixos/tests/promscale.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/servers/sql/postgresql/ext/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ self: super: {

pg_uuidv7 = super.callPackage ./pg_uuidv7.nix { };

promscale_extension = super.callPackage ./promscale_extension.nix { };

repmgr = super.callPackage ./repmgr.nix { };

rum = super.callPackage ./rum.nix { };
Expand Down
59 changes: 0 additions & 59 deletions pkgs/servers/sql/postgresql/ext/promscale_extension.nix

This file was deleted.

0 comments on commit 945a3bb

Please sign in to comment.