···11 };
12 }
1314- # Then you can install it by: nix-env -i sdl-env
15- # And you can load it simply calling: load-sdl-env
0016 # and this will update your env vars to have 'make' and 'gcc' finding the SDL
17 # headers and libs.
18···44 };
45 }
4647- Now we should build our newly defined custom environment using this command on a shell, so type:
48- $ nix-env -i env-nix
4950- You can load the environment simply typing a "load-${name}-env" command.
51- $ load-nix-env
52- The result using that command should be:
53- env-nix loaded
54*/
5556{ mkDerivation, substituteAll, pkgs } : { stdenv ? pkgs.stdenv, name, buildInputs ? [], cTags ? [], extraCmds ? ""} :
···11 };
12 }
1314+ # Then you can install it by:
15+ # $ nix-env -i sdl-env
16+ # And you can load it simply calling:
17+ # $ load-sdl-env
18 # and this will update your env vars to have 'make' and 'gcc' finding the SDL
19 # headers and libs.
20···46 };
47 }
4849+ # Now we should build our newly defined custom environment using this command on a shell, so type:
50+ # $ nix-env -i env-nix
5152+ # You can load the environment simply typing a "load-${name}-env" command.
53+ # $ load-nix-env
54+ # The result using that command should be:
55+ # env-nix loaded
56*/
5758{ mkDerivation, substituteAll, pkgs } : { stdenv ? pkgs.stdenv, name, buildInputs ? [], cTags ? [], extraCmds ? ""} :