[Nix-dev] nix-shell with overlay?
Matthias Beyer
mail at beyermatthias.de
Tue Mar 7 17:14:09 CET 2017
On 07-03-2017 16:33:15, Profpatsch wrote:
> On 17-03-07 03:57pm, Matthias Beyer wrote:
> > Hi,
> >
> > is there a way to import an overlay in a default.nix for a nix-shell
> > and use the packages from the overlay in the nix-shell only, without
> > installing the overlay "globally" for my user?
> >
> > If yes, how?
>
> Not sure what you mean, how about just adding the overlay to the default.nix?
>
> import <nixpkgs> {
> overlays: [(self: super: {
> myDep = super.myDep.override {
> …
> };
> myPkg = self.callPackage ./. {};
> })];
> }
Ah, nice! But I also have to fetch the overlay in the expression...
(I'm trying to get the rust-overlay from mozilla to work)
--
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer
Consider switching to free software.
It adds value to your life.
https://www.gnu.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170307/7d5c011e/attachment.sig>
More information about the nix-dev
mailing list