-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pgx_ulid: init at 0.1.5 #312398
pgx_ulid: init at 0.1.5 #312398
Conversation
Version |
This PR seems stalled; is there anything I can do to help get it merged? |
What's blocking this from being merged? Who needs to approve? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the "init" commit is not merged, yet, you can squash both commits and "init at 0.1.5" instead of updating immediately after.
src = fetchFromGitHub { | ||
owner = "pksunkara"; | ||
repo = "pgx_ulid"; | ||
rev = "29a037e7e2dd8b18e4bb5e5ec4f9a6fe270e84bc"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev = "29a037e7e2dd8b18e4bb5e5ec4f9a6fe270e84bc"; | |
rev = "v${version}"; |
maintainers = [ maintainers.renzo ]; | ||
platforms = postgresql.meta.platforms; | ||
license = licenses.mit; | ||
broken = versionOlder postgresql.version "11"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to mark versions as broken which are not part of nixpkgs anymore. The oldest one we currently have is 12, so:
broken = versionOlder postgresql.version "11"; |
doCheck = false; | ||
|
||
meta = with lib; { | ||
description = "A PostgreSQL extension to support ULID"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a PR a while ago to remove all articles at the beginning of descriptions, so:
description = "A PostgreSQL extension to support ULID"; | |
description = "PostgreSQL extension to support ULID"; |
|
||
meta = with lib; { | ||
description = "A PostgreSQL extension to support ULID"; | ||
homepage = "https://github.com/pksunkara/pgx_ulid"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add a changelog entry, e.g. to https://github.com/pksunkara/pgx_ulid/blob/v${version}/CHANGELOG.md
FYI v0.2.0 has just recently released: |
As mentioned here, the build process needs to be updated. |
Minimal building example for the new version. Could not trick pgrx tests into using the already built extension with the running postgres instance. {
buildPgrxExtension,
fetchFromGitHub,
postgresql,
}:
buildPgrxExtension rec {
inherit postgresql;
pname = "pgx_ulid";
version = "0.2.0";
src = fetchFromGitHub {
owner = "pksunkara";
repo = "pgx_ulid";
tag = "v${version}";
hash = "sha256-VdLWwkUA0sVs5Z/Lyf5oTRhcHVzPmhgnYQhIM8MWJ0c=";
};
cargoHash = "sha256-Gn+SjzGaxnGKJYI9+WyE1+TzlF/2Ne43aKbXrSzfQKM=";
# Upstream renames the extension when packaging
# https://github.com/pksunkara/pgx_ulid/blob/084778c3e2af08d16ec5ec3ef4e8f345ba0daa33/.github/workflows/release.yml#L81
postInstall =
let
installDir = "$out/share/postgresql/extension";
in
''
mv ${installDir}/${pname}.control ${installDir}/ulid.control
mv ${installDir}/${pname}--${version}.sql ${installDir}/ulid--${version}.sql
'';
# pgrx tests try to install the extension into nix store
doCheck = false;
} |
I think it should move all |
@k0001 If you don't have time, I could pick up this package in a new PR as I am currently using it myself either way |
Superseded by #371463 |
Description of changes
Initial packaging of the
pgx_ulid
extension for PostgreSQL.https://github.com/pksunkara/pgx_ulid
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.