Skip to content

spike/nix #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05";
pkgs = import nixpkgs { config = {}; overlays = []; };
in

pkgs.mkShellNoCC {
packages = with pkgs; [
gcc
gnumake
zlib
libffi
readline
bzip2
openssl
ncurses
pyenv
curl
openssl
pyenv
git
docker
sqlite
xz
wget
copier
bash-completion
pre-commit
];

NAME = "nix-data-lake";

shellHook = ''
echo "Sit tight, we're initializing $NAME ...";

echo "~~~~~ Pyenv global version default to 3.11.9 ~~~~~"";
pyenv global 3.11.9

echo "~~~~~ Pyenv-virtualenv plugin installation ~~~~~"";
git clone https://github.com/pyenv/pyenv-virtualenv.git \
$(pyenv root)/plugins/pyenv-virtualenv;

echo "~~~~~ Git command and branch autocompletion ~~~~~"";
curl -o ~/.git-completion.bash \
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
curl -o ~/.git-prompt.sh \
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh

echo "~~~~~ Bash shell restart w/ profile, prompt, aliases, and more! ~~~~~"";
bash;
'';
}