nethack: add utils to path
This commit is contained in:
parent
55ff94b396
commit
11d76ef891
1 changed files with 3 additions and 1 deletions
|
@ -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 <<EOF >$out/bin/nethack
|
||||
#! ${stdenv.shell} -e
|
||||
PATH=${binPath}:\$PATH
|
||||
|
||||
if [ ! -d ${userDir} ]; then
|
||||
mkdir -p ${userDir}
|
||||
|
|
Loading…
Reference in a new issue