-
Notifications
You must be signed in to change notification settings - Fork 240
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
pre-build phase isn't working? #2048
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not sure if this is stale but it's pretty bad if the pre-build hook doesn't work. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I just noticed you are setting overlays = [
haskell-nix.overlay
(final: prev: {
my-test-project =
final.haskell-nix.project' {
src = ./.;
compiler-nix-name = "ghc945";
modules = [{
dontStrip = false;
packages.my-test-project.preBuild = final.lib.mkForce ''
export TPG_HOST=...
export TPG_DB=...
export TPG_USER=...
export TPG_PASS=...
'';
}];
};
})
]; |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi there,
I'm using
postgresql-typed
to check my queries against a live database instance at compile time through TH.I need to pass some environment variables to the build, but I can't get it to work. This is what I have so far:
Which I then build with
nix build --no-sandbox
.It appears the build hook is never executed so I assume I'm using it wrong. Any pointers ?
The text was updated successfully, but these errors were encountered: