-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
filterSource does not compose #1767
Comments
Can't you do something like this in nixpkgs lib (obviously can be made easier to actually compose)? composableFilterSource = f: s: { outPath = builtins.filterSource f s; inherit f; } |
Hell, you can even have |
@shlevy Yea I guess that works. Is it not desirable to fix this in |
Why write C++ when you could write nix? 😀 |
Should we close this since we have |
|
I marked this as stale due to inactivity. → More info |
This is pretty frustrating, as it means we can't create nix expressions that reliably filter sources provided by users, e.g.
callCabal2nix
. With the current implementations, a user cannot usefilterSource
to filter out e.g.dist/
before passing it tocallCabal2nix
unless they want to sacrifice the cabal file filtering. In this case, they can useoverrideCabal
after the fact to reset the source to their own filtered version, but I think this just demonstrates whyfilterSource
really ought to compose.The text was updated successfully, but these errors were encountered: