-
Notifications
You must be signed in to change notification settings - Fork 50
fix nix packaging #440
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
base: main
Are you sure you want to change the base?
fix nix packaging #440
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| { pkgs ? import <nixpkgs> {}, rev ? "unknown", buildDate ? "unknown" }: | ||
| { pkgs ? import <nixpkgs> {}, rev ? "unknown", buildDate ? "unknown", postgresql ? null }: | ||
|
|
||
| let | ||
| lib = pkgs.lib; | ||
| version = lib.strings.removeSuffix "\n" (builtins.readFile ../internal/version/VERSION); | ||
| postgres = if postgresql == null then pkgs.postgresql else postgresql; | ||
| in | ||
| pkgs.buildGoModule { | ||
| pname = "pgschema"; | ||
|
|
@@ -31,6 +32,8 @@ pkgs.buildGoModule { | |
| "github.com/pgplex/pgschema/cmd.GitCommit=${rev}" | ||
| "-X" | ||
| "github.com/pgplex/pgschema/cmd.BuildDate=${buildDate}" | ||
| "-X" | ||
| "github.com/pgplex/pgschema/internal/postgres.binariesPath=${postgres}" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Context Used: CLAUDE.md (source) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Context Used: CLAUDE.md (source) |
||
| ]; | ||
|
|
||
| meta = with lib; { | ||
|
|
||
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.
This was added because the default directory Postgres uses to create the lockfiles may not exist. Using
runtimePathensures the directory exists before Postgres starts.