Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created June 4, 2019 22:36
Show Gist options
  • Save cleverca22/3263fbe03119129600ae13f1e18ddf5b to your computer and use it in GitHub Desktop.
Save cleverca22/3263fbe03119129600ae13f1e18ddf5b to your computer and use it in GitHub Desktop.
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