-
Notifications
You must be signed in to change notification settings - Fork 116
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
Overlay example #58
Comments
@rsoeldner You need to do something alike:
|
@PierreR thank you, from what I understood from https://nbp.github.io/slides/NixCon/2017.NixpkgsOverlays/?full#p1-prior-overlays this all I struggle understanding what pieces fit together, Is there a documentation about In my |
@rsoeldner The overlays is replacing the
I doesn't replace the You can see this by yourself on the third slide ;-) Some explanation about the |
@PierreR Thank you, this makes sense. Currently I'm at: release.nix
with the custom-overlay.nix
and the shell.nix
But entering the
Is this the right approach ? |
@rsoeldner yes it should be |
(wait, doesn't callPackage need self (i.e. `hself`) to pick up on the new
packages?)
…On Wed, Aug 1, 2018, 10:23 AM Pi3r ***@***.***> wrote:
@rsoeldner <https://github.com/rsoeldner> yes it should be
hsuper.callPackage
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACNoMSvIp_fIcoznJIwfjNA-LMnRtm9Zks5uMeQPgaJpZM4Vp3Uq>
.
|
Yeah,
If you use |
@Gabriel439 this makes sense too.
is there a need to pass hself to the app derivation like
|
assuming `default.nix` has the `cabal2nix` shape:
{ mkDerivation, lens, <etc> }: ...
the inputs are all provided by `callPackage`, and passing `hself` would be
an unexpected argument.
…On Wed, Aug 1, 2018, 9:44 PM rsoeldner ***@***.***> wrote:
@Gabriel439 <https://github.com/Gabriel439> this makes sense too.
nix-shell --show-trace
error: while evaluating the attribute 'app.env' at /Users/rsoeldner/work/haskell-nix-overlay/release.nix:10:5:
value is a function while a set was expected, at /Users/rsoeldner/work/haskell-nix-overlay/shell.nix:1:1
is there a need to pass hself to the app derivation like
app = hself.callPackage ./default.nix (inherit hself);
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACNoMU9hSIDw7OtapnZV-W16fKNYJ1Ksks5uMoPFgaJpZM4Vp3Uq>
.
|
@sboosali right, |
@rsoeldner: It's because
|
Hey,
this is my first try using overlays, according to #53 this is the recommended way now.
It looks like nix is not able to find my
app
package,do I still need to override
haskell.packages
?The
default.nix
was generated bycabal2nix . > default.nix
The text was updated successfully, but these errors were encountered: