Skip to content

Commit

Permalink
Minor tweaks on idris repl rules
Browse files Browse the repository at this point in the history
  • Loading branch information
marcesquerra committed Nov 26, 2018
1 parent 0815253 commit 18f0a9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion idris/idris_repos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

def loadIdrisPackagerRepositories():
rules_scala_version="b537bddc58a77318b34165812a0311ef52806318"
rules_scala_version="4be50865a332aef46c46c94b345c320c3353e9e1"
http_archive(
name = "io_bazel_rules_scala",
url = "https://github.com/bazelbuild/rules_scala/archive/%s.zip"%rules_scala_version,
Expand Down
6 changes: 4 additions & 2 deletions idris/rules_idris.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ def _idris_console_impl(ctx):
script = """
#!/bin/bash
cd "$BUILD_WORKING_DIRECTORY"
DIR="${{BASH_SOURCE[0]}}.runfiles/idris"
HOME=`pwd` \
$DIR/{idrisPackager} idris $DIR/{idris} {args}
$DIR/{idrisPackager} idris $DIR/{idris} {args} "$@"
""".format(
idrisPackager = ctx.executable._idris_packager.short_path,
idris = ctx.executable._idris.short_path,
Expand Down Expand Up @@ -57,7 +59,7 @@ idris_console_rule = rule(
default = Label("@idris_packager//ip:idrisPackager"),),
"_tools": attr.label_list(
allow_files = True,
default = ["@idris_packager//ip:idrisPackager", "@idris//:bin/idris"],), # Label("@idris_packager//ip:idrisPackager.runfiles"),),
default = ["@idris_packager//ip:idrisPackager", "@idris//:bin/idris"],),
},
executable = True,
)
Expand Down

0 comments on commit 18f0a9a

Please sign in to comment.