From a32914c0bc7ed12e28637b1a8dc6782c168c4328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claes=20Wallin=20=28=E9=9F=8B=E5=98=89=E8=AA=A0=29?= Date: Wed, 28 Feb 2018 02:55:57 +0800 Subject: [PATCH] Problem: doc-search-dirs is incorrect 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. --- racket2nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/racket2nix b/racket2nix index 78bbe19..d7872a4 100755 --- a/racket2nix +++ b/racket2nix @@ -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 . ".") ) @@ -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)