diff --git a/pkgs/games/nethack/default.nix b/pkgs/games/nethack/default.nix index 735065ca18e0..bf9d01800f33 100644 --- a/pkgs/games/nethack/default.nix +++ b/pkgs/games/nethack/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, writeScript, ncurses, gzip, flex, bison }: +{ stdenv, lib, fetchurl, writeScript, coreutils, ncurses, gzip, flex, bison, less }: let platform = @@ -10,6 +10,7 @@ let # We probably want something different for Darwin else "unix"; userDir = "~/.config/nethack"; + binPath = lib.makeBinPath [ coreutils less ]; in stdenv.mkDerivation { name = "nethack-3.6.0"; @@ -60,6 +61,7 @@ in stdenv.mkDerivation { mkdir -p $out/bin cat <$out/bin/nethack #! ${stdenv.shell} -e + PATH=${binPath}:\$PATH if [ ! -d ${userDir} ]; then mkdir -p ${userDir}