/shell.nix Secret
Created
June 4, 2019 22:36
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
let | |
pkgs = import <nixpkgs> {}; | |
in pkgs.stdenv.mkDerivation rec { | |
name = "some_ruby_app"; | |
buildInputs = with pkgs; [ | |
ctags | |
neovim | |
bundler | |
bundix | |
git | |
libiconv | |
libxml2 | |
libxslt | |
bzip2 | |
zlib | |
pkgconfig | |
imagemagickBig | |
readline | |
sqlite | |
openssl | |
postgresql | |
redis | |
ruby_2_5 | |
]; | |
shellHook = '' | |
echo "setting up shell" | |
export LIBXML2_DIR=${pkgs.libxml2} | |
export LIBXSLT_DIR=${pkgs.libxslt} | |
export GEM_HOME=$PWD/.nix-gems | |
export GEM_PATH=$out/vendor/cache:$GEM_HOME | |
export PATH=$GEM_HOME/bin:$PATH | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment