[Nix-dev] Treating emacs24-nox as an alternative to emacs

Aristid Breitkreuz aristidb at gmail.com
Sun Sep 1 23:03:48 CEST 2013


Try something more like this:

{
    packageOverrides = pkgs:
     rec
     {
       emacs = pkgs.emacs24-nox;
       djr = pkgs.buildEnv {
           name = "djr";
           paths = with pkgs; [emacs mu];
       };
     };
}


2013/9/1 Danie Roux <lists at danieroux.com>

> On Sun, Sep 1, 2013 at 10:54 PM, Mathijs Kwik <mathijs at bluescreen303.nl>
> wrote:
> > Danie Roux <lists at danieroux.com> writes:
> >> mu has a dependency on emacs and I don't know how to make it believe
> >> that emacs24-nox satisfies that dependency.
> >
> > You should probably use packageOverrides, see the nixpkgs.config option
> > in the configuration.nix manpage.
> >
> > Or use it locally (in your user profile) as explained here:
> > http://nixos.org/wiki/Howto_keep_multiple_packages_up_to_date_at_once
>
> This was an attempt in that direction, which doesn't have the desired
> effect:
>
> {
>     packageOverrides = pkgs:
>      let
>        emacs = pkgs.emacs24-nox;
>      in
>      rec
>      {
>        djr = pkgs.buildEnv {
>            name = "djr";
>            paths = with pkgs; [emacs mu];
>        };
>      };
> }
>
> nix-env --dry-run -i djr
>
> --
> Danie Roux
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130901/302caf01/attachment.html 


More information about the nix-dev mailing list