[Nix-dev] nix-shell with overlay?
Profpatsch
mail at profpatsch.de
Tue Mar 7 16:33:15 CET 2017
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 ./. {};
})];
}
nix-build -A myPkg
echo "(import ./.).myPkg" > shell.nix
nix-shell
--
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
More information about the nix-dev
mailing list