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

Danie Roux lists at danieroux.com
Sun Sep 1 23:01:44 CEST 2013


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


More information about the nix-dev mailing list