Search This Blog

2019-09-30

nix

install...

sh <(curl https://nixos.org/nix/install) --no-daemon
change to nixos stable channel... (downgrades nix)

nix-channel --add https://nixos.org/channels/nixos-19.03 nixpkgs
nix-channel --update
nix-env -iA nixpkgs.nix

entering a shell with ghc and necessary packages to compile abxm...

nix-shell -p "haskellPackages.ghcWithPackages (pkgs: with pkgs; [ xmonad xmonad-contrib ])"

install development enviroment...

mkdir ~/.config/nixpkgs
echo '{ allowUnfree = true; }' > ~/.config/nixpkgs/config.nix

nix-env -f '' -iA sublime3


nix-env -i cachix
cachix use all-hies


nix-env -iA selection --arg selector 'p: { inherit (p) ghc864; }' -f https://github.com/infinisil/all-hies/tarball/master

nix-env -i ghc

configure sublime... (no need, but still testing on that)

https://github.com/haskell/haskell-ide-engine#using-hie-with-sublime-text
## https://packagecontrol.io/installation#st3

# Tools >> Preferences >> LSP Settings
{
"clients": {
  "haskell-ide-engine": {
    "command": ["hie"],
    "scopes": ["source.haskell"],
    "syntaxes": ["Packages/Haskell/Haskell.sublime-syntax"],
    "languageId": "haskell",
  },
},
}

other packages...

  subllime-merge
  icecat

possible errors during installs...

  Error: cloning builder process: Operation not permitted installing

  solution ::: echo 'sandbox = false' >> .config/nix/nix.conf
    ( maybe undo this after whatever succeeded )