update josm and start a kotlin package
more/packages/java.scm
202 | 202 | (define-public java-josm | |
203 | 203 | (package | |
204 | 204 | (name "java-josm") | |
205 | - | (version "12921") | |
205 | + | (version "13170") | |
206 | 206 | (source (origin | |
207 | 207 | (method git-fetch) | |
208 | 208 | (uri (git-reference | |
209 | 209 | (url "https://github.com/openstreetmap/josm.git") | |
210 | - | (commit "82b3a6bc44ce02ce8398b3842fa4ec2647bb5e4a"))) | |
211 | - | ;;(uri (svn-reference | |
212 | - | ;; (url "https://svn.openstreetmap.org/applications/editors/josm") | |
213 | - | ;; (revision 12039))) | |
210 | + | (commit "bfbb677395e5d788c2d49b6ed8fd9dac23495674"))) | |
211 | + | ;; FIXME: Fetching from mirror on github because svn-fetch result | |
212 | + | ;; is not deterministic: hash differs each time it fetches the repo. | |
213 | + | ;(uri (svn-reference | |
214 | + | ; (url "https://svn.openstreetmap.org/applications/editors/josm") | |
215 | + | ; (revision (string->number version)))) | |
214 | 216 | (sha256 | |
215 | 217 | (base32 | |
216 | - | "1v2mf8y42r3jplc72xy481a3263j9p2g72d76szcsvnh3cg5kd3i")) | |
217 | - | (file-name (string-append name "-" version)))) | |
218 | + | "186sxgh51p8k6h05mvn710l566xvdw9qxsmq81y78bfbrda9n9sw")) | |
219 | + | (file-name (string-append name "-" version)) | |
220 | + | (modules '((guix build utils))) | |
221 | + | (snippet | |
222 | + | '(delete-file-recursively "src/org/apache")))) | |
218 | 223 | (build-system ant-build-system) | |
219 | 224 | (native-inputs | |
220 | 225 | `(("java-javacc" ,java-javacc))) | |
… | |||
233 | 238 | ("java-httpcomponents-core" ,java-httpcomponents-core) | |
234 | 239 | ("java-commons-jcs" ,java-commons-jcs) | |
235 | 240 | ("java-commons-collections" ,java-commons-collections) | |
236 | - | ("java-commons-jcs" ,java-commons-jcs) | |
237 | 241 | ("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
238 | 242 | ("java-commons-compress" ,java-commons-compress-latest))) | |
239 | 243 | (arguments | |
… | |||
245 | 249 | (add-after 'unpack 'rm-build.xml | |
246 | 250 | (lambda* _ | |
247 | 251 | (delete-file "build.xml"))) | |
248 | - | (add-after 'unpack 'rm-jcs-embedded | |
249 | - | (lambda _ | |
250 | - | (delete-file-recursively "src/org/apache/commons/jcs"))) | |
251 | 252 | (add-before 'build 'fix-revision | |
252 | 253 | (lambda* _ | |
253 | 254 | (with-output-to-file "REVISION.XML" | |
… | |||
282 | 283 | (rename-file "data" "build/classes/data"))) | |
283 | 284 | (add-before 'install 'regenerate-jar | |
284 | 285 | (lambda _ | |
285 | - | ;; We need to regenerate the jar file with to add data. | |
286 | + | ;; We need to regenerate the jar file to add data. | |
286 | 287 | (delete-file "build/jar/josm.jar") | |
287 | 288 | (zero? (system* "jar" "-cf" "build/jar/josm.jar" "-C" | |
288 | 289 | "build/classes" ".")))) | |
… | |||
485 | 486 | "_spec-1.0.1.Final.tar.gz")) | |
486 | 487 | (sha256 | |
487 | 488 | (base32 | |
488 | - | "0crfl4f5m2sm59kdsivrw2dy63w02al1li88bhlhp7mxnicfmxv7")))) | |
489 | + | "0yhyjf9p21cjs84nz66bxnmzdxdr98kfpbyp5gr3js0hwl6zz7xb")))) | |
489 | 490 | (build-system ant-build-system) | |
490 | 491 | (arguments | |
491 | 492 | `(#:jar-name "java-jboss-transaction-api_spec.jar" | |
… | |||
6421 | 6422 | (synopsis "") | |
6422 | 6423 | (description "") | |
6423 | 6424 | (license license:asl2.0))) | |
6425 | + | ||
6426 | + | (define-public kotlin | |
6427 | + | (package | |
6428 | + | (name "kotlin") | |
6429 | + | (version "1.1.61") | |
6430 | + | (source (origin | |
6431 | + | (method url-fetch) | |
6432 | + | (uri (string-append "https://github.com/JetBrains/kotlin/archive/v" | |
6433 | + | version ".tar.gz")) | |
6434 | + | (file-name (string-append name "-" version ".tar.gz")) | |
6435 | + | (sha256 | |
6436 | + | (base32 | |
6437 | + | "0pj7x0b93r85cc3wj1lj1ydf48rikdbv0hq6wfxs059z140icq0a")))) | |
6438 | + | (build-system ant-build-system) | |
6439 | + | (home-page "https://kotlinlang.org/") | |
6440 | + | (synopsis "Statically typed programming language") | |
6441 | + | (description "") | |
6442 | + | ;; described in license/README.md | |
6443 | + | ;; Kotlin is under asl2.0, third-party libraries have different licenses | |
6444 | + | (license license:asl2.0))) |