[Nix-dev] Terminfo issues with haskell 'vty' package & nix-shell
Mateusz Kowalczyk
fuuzetsu at fuuzetsu.co.uk
Sat Nov 15 08:29:05 CET 2014
On 11/13/2014 04:20 PM, Michael Jones wrote:
> Hi,
>
> I hope this is the right list. I'm very new to nix and trying to get a set
> up working on Ubuntu 14.04 for a small haskell project I have. I use
> rxvt-unicode as a shell which generally seems to work fine but when I run
> `nix-shell` in a directly with the following `default.nix` file:
>
> { haskellPackages ? (import <nixpkgs> {}).haskellPackages }:
>
> let
> inherit (haskellPackages);
>
> in
> with haskellPackages; cabal.mkDerivation (self: {
> pname = "jump";
> version = "0.0.0";
> src = ./.;
> buildDepends = with haskellPackages; [ vty ];
> buildTools = with haskellPackages; [ cabalInstall ];
> })
>
> I get the following error when running `tput`:
>
> [nix-shell:~/root/projects/jump]$ tput setaf 7
> tput: unknown terminal "rxvt-unicode"
>
> I'm afraid I'm sufficiently clueless that I don't know how to deal with
> this. I'm guessing that the terminfo information for nix's bash needs to be
> in another folder and that the haskell 'vty' package's dependency on
> ncurses might be confusing things. Does anyone have any recommendations on
> how to investigate this further? I love the idea of nix and I'd like to get
> past this.
>
> My rxvt-unicode is from Ubuntu rather than a nix install. I did try to
> install it from nix using the recommendation from
> http://nixos.org/nixos/packages.html but I get:
>
> $ nix-env -iA nixos.pkgs.rxvt_unicode
> error: attribute ‘nixos’ in selection path ‘nixos.pkgs.rxvt_unicode’ not
> found
>
> Any further help would also be appreciated :)
>
> Cheers,
> Michael
>
>
I always deal with this just be using TERM=xterm in nix-shell in front
of the commands I need this. Hack but I haven't had problems yet.
--
Mateusz K.
More information about the nix-dev
mailing list