Last active
March 1, 2019 11:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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