Skip to content

Instantly share code, notes, and snippets.

@dmvianna
Last active March 1, 2019 11:31
Show Gist options
  • Save dmvianna/0b13d21f7e06f4a42ccc2dbb38898971 to your computer and use it in GitHub Desktop.
Save dmvianna/0b13d21f7e06f4a42ccc2dbb38898971 to your computer and use it in GitHub Desktop.
Shell script to install nix in a clean Debian instance -- and some Haskell dev tools
#!/bin/bash
#
# set up nix in a Debian instance
#
sudo apt-get update
sudo apt-get -y install bzip2 gcc libdigest-sha-perl libgmp-dev libncurses5-dev libz-dev make
curl https://nixos.org/nix/install | sh
. $HOME/.nix-profile/etc/profile.d/nix.sh
nix-channel --update
nix-env -i git screen emacs stack
nix-env -f "<nixpkgs>" -iA haskellPackages.hlint haskellPackages.ghc-mod
echo 'export TERM=xterm' >> $HOME/.profile
echo 'eval "$(stack --bash-completion-script stack)"' >> $HOME/.profile
stack setup
# We need Node
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment