···1111 };
1212 }
13131414- # Then you can install it by: nix-env -i sdl-env
1515- # And you can load it simply calling: load-sdl-env
1414+ # Then you can install it by:
1515+ # $ nix-env -i sdl-env
1616+ # And you can load it simply calling:
1717+ # $ load-sdl-env
1618 # and this will update your env vars to have 'make' and 'gcc' finding the SDL
1719 # headers and libs.
1820···4446 };
4547 }
46484747- Now we should build our newly defined custom environment using this command on a shell, so type:
4848- $ nix-env -i env-nix
4949+ # Now we should build our newly defined custom environment using this command on a shell, so type:
5050+ # $ nix-env -i env-nix
49515050- You can load the environment simply typing a "load-${name}-env" command.
5151- $ load-nix-env
5252- The result using that command should be:
5353- env-nix loaded
5252+ # You can load the environment simply typing a "load-${name}-env" command.
5353+ # $ load-nix-env
5454+ # The result using that command should be:
5555+ # env-nix loaded
5456*/
55575658{ mkDerivation, substituteAll, pkgs } : { stdenv ? pkgs.stdenv, name, buildInputs ? [], cTags ? [], extraCmds ? ""} :