@@ -29,6 +29,30 @@ profile. The set of available libraries can be discovered by running the
29command `nix-env -f "<nixpkgs>" -qaP -A rPackages`. The first column from that
29command `nix-env -f "<nixpkgs>" -qaP -A rPackages`. The first column from that
30output is the name that has to be passed to rWrapper in the code snipped above.
30output is the name that has to be passed to rWrapper in the code snipped above.
32+However, if you'd like to add a file to your project source to make the
33+environment available for other contributors, you can create a `default.nix`
37+ pkgs = import <nixpkgs> {};
38+ stdenv = pkgs.stdenv;
40+ myProject = stdenv.mkDerivation {
43+ src = if pkgs.lib.inNixShell then null else nix;
45+ buildInputs = with rPackages; [
53+and then run `nix-shell .` to be dropped into a shell with those packages
32## Updating the package set
56## Updating the package set