# Pastebin 66ZNShC0 # This allows overriding nixpkgs by passing `--arg pkgs ...` { pkgs ? import ./devtools/lib/nix/nixpkgs.nix {} , lib ? pkgs.lib }: with pkgs; with lib; let ruby = ruby_2_3; in stdenv.mkDerivation { name = "keeptruckin-development-environment"; buildInputs = [ # The ruby environment ruby.devEnv # Gem dependencies libxml2 # dependency of the nokogiri Gem postgresql # dependency of the pg Gem sqlite # dependency of the sqlite3 Gem openssl ] ++ optional stdenv.isDarwin [ docker-machine # Gem dependencies libiconv # dependency of the nokogiri Gem ] ++ optional stdenv.isLinux [ # TODO: make wkhtmltopdf compatible with Mac! wkhtmltopdf ]; phases = ["nobuildPhase"]; nobuildPhase = '' echo echo "This derivation is not meant to be built, aborting"; echo exit 1 ''; }