git.iko.soy/typeable/nixpkgs
on master help sign in
nethack: add utils to path
commit11d76ef891f48d24de51c676747f94cdeee2730c authorNikolay Amiantov <ab@fmap.me> dateThu 6 Apr 2017, 16:27 (10 years ago) parent55ff94b
1 file changed+3−1
pkgs/games/nethack/default.nix+3−1
pkgs/games/nethack/default.nix+3−1
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchurl, writeScript, ncurses, gzip, flex, bison }:
1+{ stdenv, lib, fetchurl, writeScript, coreutils, ncurses, gzip, flex, bison, less }:
22
33let
44 platform =
@@ -10,6 +10,7 @@ let
1010 # We probably want something different for Darwin
1111 else "unix";
1212 userDir = "~/.config/nethack";
13+ binPath = lib.makeBinPath [ coreutils less ];
1314
1415in stdenv.mkDerivation {
1516 name = "nethack-3.6.0";
@@ -60,6 +61,7 @@ in stdenv.mkDerivation {
6061 mkdir -p $out/bin
6162 cat <<EOF >$out/bin/nethack
6263 #! ${stdenv.shell} -e
64+ PATH=${binPath}:\$PATH
6365
6466 if [ ! -d ${userDir} ]; then
6567 mkdir -p ${userDir}