add bazel (not building)
more/packages/java.scm
| 5211 | 5211 | (inputs | |
| 5212 | 5212 | `(("java-jsch" ,java-jsch) | |
| 5213 | 5213 | ("java-jsch-agentproxy-core" ,java-jsch-agentproxy-core))))) | |
| 5214 | + | ||
| 5215 | + | (define-public bazel | |
| 5216 | + | (package | |
| 5217 | + | (name "bazel") | |
| 5218 | + | (version "0.10.0") | |
| 5219 | + | (source (origin | |
| 5220 | + | (method url-fetch) | |
| 5221 | + | ;(uri (string-append "https://github.com/bazelbuild/bazel/archive/" | |
| 5222 | + | ; version ".tar.gz")) | |
| 5223 | + | ;; FIXME: This contains build artifacts generated by running bazel. | |
| 5224 | + | (uri (string-append "https://github.com/bazelbuild/bazel/releases/" | |
| 5225 | + | "download/" version "/bazel-" version "-dist.zip")) | |
| 5226 | + | (file-name (string-append name "-" version ".zip")) | |
| 5227 | + | ;; TODO: remove third_party/ | |
| 5228 | + | (sha256 | |
| 5229 | + | (base32 | |
| 5230 | + | ;"0a1n20n4r2z852i3ik3c7bmaiiikny5i7r82p0rkcvy6wdsqzclp")))) | |
| 5231 | + | "0j4mgmrivpkk8id0h9sshm58igaaj555bzp5pjcz8kdcma67kq27")))) | |
| 5232 | + | (build-system ant-build-system) | |
| 5233 | + | (arguments | |
| 5234 | + | `(#:jdk ,icedtea-8 | |
| 5235 | + | #:phases | |
| 5236 | + | (modify-phases %standard-phases | |
| 5237 | + | (add-before 'unpack 'subdir | |
| 5238 | + | (lambda _ | |
| 5239 | + | (mkdir "src") | |
| 5240 | + | (chdir "src"))) | |
| 5241 | + | (add-before 'patch-source-shebangs 'chdir | |
| 5242 | + | (lambda _ | |
| 5243 | + | (chdir ".."))) | |
| 5244 | + | (replace 'build | |
| 5245 | + | (lambda _ | |
| 5246 | + | (invoke "./compile.sh")))))) | |
| 5247 | + | (native-inputs | |
| 5248 | + | `(("unzip" ,unzip) | |
| 5249 | + | ("which" ,which))) | |
| 5250 | + | (home-page "https://bazel.build") | |
| 5251 | + | (synopsis "Build system") | |
| 5252 | + | (description "") | |
| 5253 | + | (license license:asl2.0))) |