Re: [Nix-dev] ghc-mod depends on Wayland

2014-11-03 Thread Andreas Herrmann
Thanks for pointing this out. I agree, I think a build-time dependency on 
emacs-nox, and no run-time dependency on emacs would be a great solution.

Best, Andreas


On Monday 03 November 2014 11:26:12 Peter Simons wrote:
> Please see https://github.com/NixOS/nixpkgs/issues/4561.
> 
> Peter
> 
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] ghc-mod depends on Wayland

2014-11-03 Thread Peter Simons
Please see https://github.com/NixOS/nixpkgs/issues/4561.

Peter

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] ghc-mod depends on Wayland

2014-11-03 Thread Mathijs Kwik
ghc-mod should not have a runtime dependency on emacs at all.

At build-time, emacs-nox sounds fine indeed.



Andreas Herrmann  writes:

> Hello everyone,
>
> Recently, I tried to install the ghc-mod package. I was surprised to
> see that nix-env intended to install a _large_ amount of dependencies
> down to quite unexpected ones such as Wayland.
>
> I dug into the dependency tree:
>
> nix-store -qR --tree $(nix-instantiate -A haskellPackages.ghcMod 
> '')
>
> 
> /nix/store/0b7bmyslyidn7iq7bcmxzgxqa0wcd786-haskell-ghc-mod-ghc7.8.3-5.1.1.0-shared.drv
> +---/nix/store/gzgrizf2xw537hnnbycbnpbxzrwddxjw-emacs-24.4.drv
> |   +---/nix/store/lp9z54f5snvrdnvlih815m28lxb5080l-librsvg-2.36.4.drv
> |   |   +---/nix/store/l89khlm6piiilivpnx618w13cfqqj223-cairo-1.12.16.drv
> |   |   |   
> +---/nix/store/ib90dbdwvijmv44v7ij7ghs1md5nfrf2-mesa-noglu-10.2.6.drv
> |   |   |   |   
> +---/nix/store/gl09hmxv11fvsz2dkr6s6i5xsbvp2c55-wayland-1.6.0.drv
>
>
> As it turns out this comes from Emacs and the problem is fixed with a simple 
> package override:
>
> { pkgs }: {
>   packageOverrides = self: with pkgs; {
> emacs = self.emacs.override { withX = false; withGTK = false; };
>   }
> }
>
>
> However, I'm wondering if this really is the intended default behavior for 
> that package. Wouldn't it be better to have ghc-mod depend on a nox-emacs by 
> default?
>
> Best, Andreas
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] ghc-mod depends on Wayland

2014-11-03 Thread Andreas Herrmann
Hello everyone,

Recently, I tried to install the ghc-mod package. I was surprised to see that 
nix-env intended to install a _large_ amount of dependencies down to quite 
unexpected ones such as Wayland.

I dug into the dependency tree:

nix-store -qR --tree $(nix-instantiate -A haskellPackages.ghcMod 
'')


/nix/store/0b7bmyslyidn7iq7bcmxzgxqa0wcd786-haskell-ghc-mod-ghc7.8.3-5.1.1.0-shared.drv
+---/nix/store/gzgrizf2xw537hnnbycbnpbxzrwddxjw-emacs-24.4.drv
|   +---/nix/store/lp9z54f5snvrdnvlih815m28lxb5080l-librsvg-2.36.4.drv
|   |   +---/nix/store/l89khlm6piiilivpnx618w13cfqqj223-cairo-1.12.16.drv
|   |   |   
+---/nix/store/ib90dbdwvijmv44v7ij7ghs1md5nfrf2-mesa-noglu-10.2.6.drv
|   |   |   |   
+---/nix/store/gl09hmxv11fvsz2dkr6s6i5xsbvp2c55-wayland-1.6.0.drv


As it turns out this comes from Emacs and the problem is fixed with a simple 
package override:

{ pkgs }: {
  packageOverrides = self: with pkgs; {
emacs = self.emacs.override { withX = false; withGTK = false; };
  }
}


However, I'm wondering if this really is the intended default behavior for that 
package. Wouldn't it be better to have ghc-mod depend on a nox-emacs by default?

Best, Andreas
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev