split default.nix and shell.nix

- simplify the execution of nix-build and nix-shell which don't need any
  further parameters
- use a buildEnv in default.nix for nix-build
- use a derivation in shell.nix for nix-shell
fix Makefile nix integration
simplify Makefile by using lookup through $PATH