summary refs log tree commit diff
diff options
context:
space:
mode:
authorYurii Rashkovskii <yrashk@gmail.com>2019-06-14 14:41:39 -0700
committerYurii Rashkovskii <yrashk@gmail.com>2019-06-15 23:25:32 -0700
commit6278dbf8c4df9e9fc63d0563c47ec778cd46cfd8 (patch)
treed488f2ded8c5d0968fa53c5f0f2a45bc64710ea4
parente0818a15305561ea1ebe36203d914465fd71453d (diff)
downloadnixpkgs-6278dbf8c4df9e9fc63d0563c47ec778cd46cfd8.tar
nixpkgs-6278dbf8c4df9e9fc63d0563c47ec778cd46cfd8.tar.gz
nixpkgs-6278dbf8c4df9e9fc63d0563c47ec778cd46cfd8.tar.bz2
nixpkgs-6278dbf8c4df9e9fc63d0563c47ec778cd46cfd8.tar.lz
nixpkgs-6278dbf8c4df9e9fc63d0563c47ec778cd46cfd8.tar.xz
nixpkgs-6278dbf8c4df9e9fc63d0563c47ec778cd46cfd8.tar.zst
nixpkgs-6278dbf8c4df9e9fc63d0563c47ec778cd46cfd8.zip
picolisp: fix help functionality
Currently, trying to use help results in something like this:

```
: (help 'db)
========================================
w3m: Can't exec
=======================================
```

By including `w3m` as an input, the behaviour changes to:

```
: (help 'db)
========================================
(db 'sym 'cls ['hook] 'any ['sym 'any ..]) -> sym | NIL
Returns a database object of class cls, where the values for the sym arguments
correspond to the any arguments. If a matching object cannot be found, NIL is
returned. sym, cls and hook should specify a tree for cls or one of its
superclasses. See also aux, collect, request, fetch, init and step.

========================================
-> db
```
-rw-r--r--pkgs/development/interpreters/picolisp/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/picolisp/default.nix b/pkgs/development/interpreters/picolisp/default.nix
index 058a83b6b43..a7e6f6e2dc7 100644
--- a/pkgs/development/interpreters/picolisp/default.nix
+++ b/pkgs/development/interpreters/picolisp/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, jdk, makeWrapper }:
+{ stdenv, fetchurl, jdk, w3m, makeWrapper }:
 with stdenv.lib;
 
 stdenv.mkDerivation rec {
@@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
 
 
     makeWrapper $out/bin/picolisp $out/bin/pil \
+      --prefix PATH : ${w3m}/bin \
       --add-flags "$out/lib/picolisp/lib.l" \
       --add-flags "@lib/misc.l" \
       --add-flags "@lib/btree.l" \