-
Notifications
You must be signed in to change notification settings - Fork 39
Conversation
This adds a very simple "_" suffix to the wrapped binary. (ProgramNameModifier) Additionally we setup a wrapper target, that depends on the wrapped binary, and currently does nothing useful except wrapping the binary, without any additional parameter injection.
@angerman Thanks for giving it a try! Does the current implementation work for you? I guess it doesn't as I don't see any
What is the intended purpose of
It's not possible, because A couple of further comments:
|
@snowleopard this only works, if I make the follow non-universal adjustments:
I hope this becomes clear from the snipped above.
Ideally the
Yes, this clearly needs to boil down to a no-op on windows. I'm not sure how to do this elegantly.
How about the following? Then I'm not so sure what you were debating about cabal package resemblance on IRC, which is why I went ahead with
|
Hmm, why does the above snippet live in
Exactly! So why don't you turn
OK, don't worry about this. I can add conditionals later.
I think this is semantically wrong: wrapped and unwapped programs are types of programs, not types of packages. We really should contain the wrapping flavour inside a
Ah, I see. That was about #12. At some point we might change |
This allows to access `top`. But we currently hardcode the wrapper for the `ghc` package.
This now correctly generates the binary and wrapper for ghc-stage1. It's still a pretty big hack. |
Awesome! Let me study your code and see whether it can be simplified if we switch to an alternative non-general solution. |
After experimenting with a couple of ways of adding wrappers I decided to take a non-general approach, see #38 (comment). Many thanks for this pull request: I used it as a starting point, but merging it wasn't convenient. |
This should help with #38, but is not yet ready to be pulled. There are a few issues, I'd appreciate help with:
PackageWrapper
is aString
for now, which is quite useless. I guess we would need something that can a) query the settings, and b) receive the actual binary name.GhcSourePath
in theRules ()
to append to prepend to build the absolute path of the executable.Also this feels like a very crude hack, hence any advice is appreciated.