Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@djcoin
Last active May 4, 2016 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djcoin/ee0f0d26a3be364c8793d1abbebe68d4 to your computer and use it in GitHub Desktop.
Save djcoin/ee0f0d26a3be364c8793d1abbebe68d4 to your computer and use it in GitHub Desktop.
nix-shell -p libffi openssl
nix-env -i nodejs
mkdir ~/.mutable_node_modules
npm config set prefix '~/.mutable_node_modules'
# add bin to .bashrc
vim .bashrc
mkdir bin
ln -s ~/.mutable_node_modules/bin/ ~/bin
nix-env -i python2.7-virtualenv
nix-env -iA nixos.gcc
nix-env -i python2.7-cffi
nix-shell -p libffi openssl
nix-env -i sqlite
virtualenv --python=$(which python2.7) --system-site-package venv
ln -s /nix/store/8jhhba92c61kx98sb2pd3qr49rzmpg31-python-sqlite3-2.7.11/lib/python2.7/site-packages/_sqlite3.so venv/lib/python2.7/site-packages/
make
export LEKTOR_DEV=1
lektor quickstart --path dev-example
lektor --project dev-example server
https://github.com/NixOS/nixpkgs/issues/492
ln -s /nix/store/8jhhba92c61kx98sb2pd3qr49rzmpg31-python-sqlite3-2.7.11/lib/python2.7/site-packages/_sqlite3.so venv/lib/python2.7/site-packages/
ln -s /nix/store/s2lrvwlfarrf25kwsy3f2lp93ykdykgc-python-curses-2.7.11/lib/python2.7/site-packages/_curses.so venv/lib/python2.7/site-packages/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment