[Nix-dev] Terminfo issues with haskell 'vty' package & nix-shell
Michael Jones
m.pricejones at gmail.com
Thu Nov 13 17:20:39 CET 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141113/be940b34/attachment.html
More information about the nix-dev
mailing list