Skip to content

Commit

Permalink
Problem: doc-search-dirs is incorrect
Browse files Browse the repository at this point in the history
While troubleshooting other attributes, I discovered that the default doc-search-dirs ends up
being $package/share/racket/collects/doc.

Solution: Make doc-search-dirs explicit in config.rktd.
  • Loading branch information
clacke committed Feb 27, 2018
1 parent 8890c21 commit a32914c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion racket2nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ stdenv.mkDerivation rec {
(links-search-files . ( "$out/share/racket/links.rktd" ~a ))
(pkgs-search-dirs . ( "$out/share/racket/pkgs" ~a ))
(collects-search-dirs . ( "$out/share/racket/collects" ~a ))
(doc-search-dirs . ( "$out/share/racket/doc" ~a ))
(absolute-installation . #t)
(installation-name . ".")
)
Expand Down Expand Up @@ -137,9 +138,13 @@ EOM
(string-join
(for/list ((name dependency-names))
(format "\"${_~a.out}/share/racket/collects\"" name))))
(define doc-dirs
(string-join
(for/list ((name dependency-names))
(format "\"${_~a.out}/share/racket/doc\"" name))))

(format derivation-template name url sha1 build-inputs circular-build-inputs
link-files pkgs-dirs collects-dirs))
link-files pkgs-dirs collects-dirs doc-dirs))

(define (header) header-template)

Expand Down

0 comments on commit a32914c

Please sign in to comment.