From 11d76ef891f48d24de51c676747f94cdeee2730c Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Thu, 6 Apr 2017 16:27:36 +0300 Subject: [PATCH] nethack: add utils to path --- pkgs/games/nethack/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}