Skip to content

Commit

Permalink
Problem: We have workaround code that is no longer necessary
Browse files Browse the repository at this point in the history
When we corrected the problem with our own links-file, the workaround of creating directories in .../collects became unnecessary.

Solution: Remove the workaround.
  • Loading branch information
clacke committed Feb 27, 2018
1 parent f201938 commit f698f86
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions racket2nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,26 +106,6 @@ stdenv.mkDerivation rec {
# install and link us
if ${racket-cmd} -e "(require pkg/lib) (exit (if (member \"$name\" (installed-pkg-names #:scope (bytes->path (string->bytes/utf-8 \"${_racket-lib.out}/share/racket/pkgs\")))) 1 0))"; then
${raco} pkg install --no-setup --copy --deps fail --fail-fast --scope installation ./$name
collection_name=$(${racket-cmd} -e "(require setup/getinfo) ((get-info/full \"$name\") 'collection)")
(
shopt -s nullglob
case "$collection_name" in
"'multi")
collection_names=$(for collection_path in $out/share/racket/pkgs/$name/*/; do
basename $collection_path; done)
;;
"'use-pkg-name")
collection_names=$name
;;
'"'*'"')
collection_names=$(echo $collection_name | tr -d '"')
;;
*)
echo >&2 "Unexpected info.rkt value: ('collection . $collection_name)"
exit 2
esac
mkdir -p $(printf "$out/share/racket/collects/%s " $collection_names)
)
${raco} setup --no-user --no-pkg-deps --fail-fast --only --pkgs $name
fi
find $out/share/racket/collects -lname '${_racket-lib.out}/share/racket/collects/*' -delete
Expand Down

0 comments on commit f698f86

Please sign in to comment.