{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/16825","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/16825/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/16825/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/16825/events","html_url":"https://github.com/NixOS/nixpkgs/pull/16825","id":164689345,"number":16825,"title":"fetchMavenArtifact: init","user":{"login":"k0001","id":3302,"avatar_url":"https://avatars.githubusercontent.com/u/3302?v=3","gravatar_id":"","url":"https://api.github.com/users/k0001","html_url":"https://github.com/k0001","followers_url":"https://api.github.com/users/k0001/followers","following_url":"https://api.github.com/users/k0001/following{/other_user}","gists_url":"https://api.github.com/users/k0001/gists{/gist_id}","starred_url":"https://api.github.com/users/k0001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k0001/subscriptions","organizations_url":"https://api.github.com/users/k0001/orgs","repos_url":"https://api.github.com/users/k0001/repos","events_url":"https://api.github.com/users/k0001/events{/privacy}","received_events_url":"https://api.github.com/users/k0001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-09T22:48:08Z","updated_at":"2016-07-10T00:33:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/16825","html_url":"https://github.com/NixOS/nixpkgs/pull/16825","diff_url":"https://github.com/NixOS/nixpkgs/pull/16825.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/16825.patch"},"body":"###### Motivation for this change\r\n\r\n* Make it easier to download a Maven artifact by specifying their group id, artifact id, and version.\r\n\r\n* Make the artifact discoverable in the classpath of packages that depend on it via `buildInputs`.\r\n\r\n###### Things done\r\n\r\n- [x] Tested using sandboxing\r\n  ([nix.useChroot](http://nixos.org/nixos/manual/options.html#opt-nix.useChroot) on NixOS,\r\n    or option `build-use-chroot` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file)\r\n    on non-NixOS)\r\n- Built on platform(s)\r\n   - [x] NixOS\r\n   - [ ] OS X\r\n   - [x] Linux\r\n- [x] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run \"nox-review wip\"`\r\n- [x] Tested execution of all binary files (usually in `./result/bin/`)\r\n- [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).\r\n\r\n---\r\n\r\n\r\n`fetchMavenArtifact` downloads a Maven artifact given a group id, an artifact id,\r\nand a version.\r\n\r\nExample usage:\r\n\r\n```\r\n   org_apache_httpcomponents_httpclient_4_5_2 = fetchMavenArtifact {\r\n     groupId = \"org.apache.httpcomponents\";\r\n     artifactId = \"httpclient\";\r\n     version = \"4.5.2\";\r\n     sha256 = \"0ms00zc28pwqk83nwwbafhq6p8zci9mrjzbqalpn6v0d80hwdzqd\";\r\n   };\r\n```\r\n\r\nNow `org_apache_httpcomponents_httpclient_4_5_2.jar` points to the downloaded\r\nJAR file, while `org_apache_httpcomponents_httpclient_4_5_2` refers to a\r\nderivation that when used used in `buildInputs` will be automatically added to\r\nthe Java classpath.\r\n\r\nKudos to @charleso for his original work on `sbt2nix`, on which this is based."},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/231563595","html_url":"https://github.com/NixOS/nixpkgs/pull/16825#issuecomment-231563595","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/16825","id":231563595,"user":{"login":"k0001","id":3302,"avatar_url":"https://avatars.githubusercontent.com/u/3302?v=3","gravatar_id":"","url":"https://api.github.com/users/k0001","html_url":"https://github.com/k0001","followers_url":"https://api.github.com/users/k0001/followers","following_url":"https://api.github.com/users/k0001/following{/other_user}","gists_url":"https://api.github.com/users/k0001/gists{/gist_id}","starred_url":"https://api.github.com/users/k0001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k0001/subscriptions","organizations_url":"https://api.github.com/users/k0001/orgs","repos_url":"https://api.github.com/users/k0001/repos","events_url":"https://api.github.com/users/k0001/events{/privacy}","received_events_url":"https://api.github.com/users/k0001/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T00:33:49Z","updated_at":"2016-07-10T00:33:49Z","body":"I added a small change sanitizing the package name."}}
{"actor":{"display_login":"k0001"}}