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
ats-format: Unbreak by disabling manpage generation #82226
Conversation
dc65eab
to
8938dca
Compare
@@ -0,0 +1,21 @@ | |||
diff --git a/Setup.hs b/Setup.hs |
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.
In general, we try to not carry around patches in nixpkgs unless absolutely necessary.
Would it be possible to instead get this fixed upstream? (Possibly by adding a flag to disable manpage creation?)
Or, maybe you could just delete the Setup.hs
file at the apropriate location, so the default one is used.
Also, what error are you getting when Setup configure
is running? Maybe you just need to create a man
directory for it to use?
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.
It tries to write manpages and shell profiles to $HOME
, which doesn't exist. I could set $HOME
to /tmp
but I think it's too hacky.
I think I'll add a cabal flag and submit a PR to the upstream then.
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.
@poscat0x04 Does it make sense to just set $HOME
to $out
? I could imagine that some users would actually want the man pages.
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.
Hmm, it seems that the cabal file is read after Setup.hs is being compiled so the CPP options are being ignored. Is it possible to let nix pass additional arguments (-optP) to runghc
?
8938dca
to
0af5122
Compare
Should build now. No patches needed |
0af5122
to
45b880b
Compare
Looks good to me. I've confirmed that it builds. Thanks! |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)