{"action":"created","comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/90678162","pull_request_review_id":11197868,"id":90678162,"diff_hunk":"@@ -0,0 +1,35 @@\n+{ stdenv, fetchurl, makeWrapper, opencl-headers, opencl-icd }:\n+\n+assert stdenv.isLinux;\n+\n+stdenv.mkDerivation rec {\n+  name    = \"hashcat-${version}\";\n+  version = \"3.10\";\n+\n+  src = fetchurl {\n+    name = \"${name}.tar.gz\";\n+    url = \"https://hashcat.net/files/hashcat-${version}.tar.gz\";\n+    sha256 = \"1sg30d9as6xsl7b0i7mz26igachbv0l0yimwb12nmarmgdgmwm9v\";\n+  };\n+\n+  buildInputs = [ opencl-headers makeWrapper ];\n+\n+  makeFlags = [ \"OPENCL_HEADERS_KHRONOS=${opencl-headers}/include\" ];\n+\n+  # $out is not known until the build has started.\n+  configurePhase = ''\n+    makeFlags=\"$makeFlags PREFIX=$out\"\n+  '';\n+\n+  postFixup = ''\n+    wrapProgram $out/bin/hashcat --prefix LD_LIBRARY_PATH : ${opencl-icd}/lib\n+  '';\n+\n+  meta = {\n+    description = \"Fast password cracker\";\n+    homepage    = \"http://hashcat.net/hashcat/\";","path":"pkgs/tools/security/hashcat/hashcat3/default.nix","position":null,"original_position":30,"commit_id":"328c67e94057a6530a548368703bf2da3d6e00e8","original_commit_id":"079f9f254517fd9153c9756397d2ce45cf1586b3","user":{"login":"kierdavis","id":845652,"avatar_url":"https://avatars.githubusercontent.com/u/845652?v=3","gravatar_id":"","url":"https://api.github.com/users/kierdavis","html_url":"https://github.com/kierdavis","followers_url":"https://api.github.com/users/kierdavis/followers","following_url":"https://api.github.com/users/kierdavis/following{/other_user}","gists_url":"https://api.github.com/users/kierdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/kierdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kierdavis/subscriptions","organizations_url":"https://api.github.com/users/kierdavis/orgs","repos_url":"https://api.github.com/users/kierdavis/repos","events_url":"https://api.github.com/users/kierdavis/events{/privacy}","received_events_url":"https://api.github.com/users/kierdavis/received_events","type":"User","site_admin":false},"body":"Thanks, fixed.","created_at":"2016-12-02T16:52:55Z","updated_at":"2016-12-02T16:52:55Z","html_url":"https://github.com/NixOS/nixpkgs/pull/20826#discussion_r90678162","pull_request_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/20826","_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/90678162"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/20826#discussion_r90678162"},"pull_request":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/20826"}}},"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/20826","id":95998336,"html_url":"https://github.com/NixOS/nixpkgs/pull/20826","diff_url":"https://github.com/NixOS/nixpkgs/pull/20826.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/20826.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/20826","number":20826,"state":"open","locked":false,"title":"hashcat3: init at 3.10","user":{"login":"kierdavis","id":845652,"avatar_url":"https://avatars.githubusercontent.com/u/845652?v=3","gravatar_id":"","url":"https://api.github.com/users/kierdavis","html_url":"https://github.com/kierdavis","followers_url":"https://api.github.com/users/kierdavis/followers","following_url":"https://api.github.com/users/kierdavis/following{/other_user}","gists_url":"https://api.github.com/users/kierdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/kierdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kierdavis/subscriptions","organizations_url":"https://api.github.com/users/kierdavis/orgs","repos_url":"https://api.github.com/users/kierdavis/repos","events_url":"https://api.github.com/users/kierdavis/events{/privacy}","received_events_url":"https://api.github.com/users/kierdavis/received_events","type":"User","site_admin":false},"body":"###### Motivation for this change\r\n\r\nWe already have a 'hashcat', but it's at version 2.x, which is incompatible with hashcat 3.x.\r\n\r\n###### Things done\r\n\r\n- [x] Tested using sandboxing\r\n  ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS,\r\n    or option `build-use-sandbox` 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   - [ ] macOS\r\n   - [ ] 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\nThis builds and runs on my machines, but I'm not yet convinced that it's portable. I'd be grateful if a couple other people could test that this package builds and that running `result/bin/hashcat -b` starts the benchmark running on at least one device (CPU, GPU, APU etc).\r\n","created_at":"2016-11-30T23:48:06Z","updated_at":"2016-12-02T16:52:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5eaa429e1a331bbdd737c08ceb8393eeaeb7d176","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/20826/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/20826/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/20826/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/328c67e94057a6530a548368703bf2da3d6e00e8","head":{"label":"kierdavis:hashcat3","ref":"hashcat3","sha":"328c67e94057a6530a548368703bf2da3d6e00e8","user":{"login":"kierdavis","id":845652,"avatar_url":"https://avatars.githubusercontent.com/u/845652?v=3","gravatar_id":"","url":"https://api.github.com/users/kierdavis","html_url":"https://github.com/kierdavis","followers_url":"https://api.github.com/users/kierdavis/followers","following_url":"https://api.github.com/users/kierdavis/following{/other_user}","gists_url":"https://api.github.com/users/kierdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/kierdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kierdavis/subscriptions","organizations_url":"https://api.github.com/users/kierdavis/orgs","repos_url":"https://api.github.com/users/kierdavis/repos","events_url":"https://api.github.com/users/kierdavis/events{/privacy}","received_events_url":"https://api.github.com/users/kierdavis/received_events","type":"User","site_admin":false},"repo":{"id":70533978,"name":"nixpkgs","full_name":"kierdavis/nixpkgs","owner":{"login":"kierdavis","id":845652,"avatar_url":"https://avatars.githubusercontent.com/u/845652?v=3","gravatar_id":"","url":"https://api.github.com/users/kierdavis","html_url":"https://github.com/kierdavis","followers_url":"https://api.github.com/users/kierdavis/followers","following_url":"https://api.github.com/users/kierdavis/following{/other_user}","gists_url":"https://api.github.com/users/kierdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/kierdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kierdavis/subscriptions","organizations_url":"https://api.github.com/users/kierdavis/orgs","repos_url":"https://api.github.com/users/kierdavis/repos","events_url":"https://api.github.com/users/kierdavis/events{/privacy}","received_events_url":"https://api.github.com/users/kierdavis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kierdavis/nixpkgs","description":"Nix Packages collection","fork":true,"url":"https://api.github.com/repos/kierdavis/nixpkgs","forks_url":"https://api.github.com/repos/kierdavis/nixpkgs/forks","keys_url":"https://api.github.com/repos/kierdavis/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kierdavis/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kierdavis/nixpkgs/teams","hooks_url":"https://api.github.com/repos/kierdavis/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/kierdavis/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/kierdavis/nixpkgs/events","assignees_url":"https://api.github.com/repos/kierdavis/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/kierdavis/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/kierdavis/nixpkgs/tags","blobs_url":"https://api.github.com/repos/kierdavis/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kierdavis/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kierdavis/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/kierdavis/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kierdavis/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/kierdavis/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/kierdavis/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/kierdavis/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/kierdavis/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/kierdavis/nixpkgs/subscription","commits_url":"https://api.github.com/repos/kierdavis/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/kierdavis/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/kierdavis/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/kierdavis/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/kierdavis/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/kierdavis/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kierdavis/nixpkgs/merges","archive_url":"https://api.github.com/repos/kierdavis/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kierdavis/nixpkgs/downloads","issues_url":"https://api.github.com/repos/kierdavis/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/kierdavis/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/kierdavis/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/kierdavis/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kierdavis/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/kierdavis/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/kierdavis/nixpkgs/deployments","created_at":"2016-10-10T22:27:35Z","updated_at":"2016-10-10T22:27:59Z","pushed_at":"2016-12-02T16:52:52Z","git_url":"git://github.com/kierdavis/nixpkgs.git","ssh_url":"git@github.com:kierdavis/nixpkgs.git","clone_url":"https://github.com/kierdavis/nixpkgs.git","svn_url":"https://github.com/kierdavis/nixpkgs","homepage":null,"size":378169,"stargazers_count":0,"watchers_count":0,"language":"Nix","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NixOS:master","ref":"master","sha":"96e1220813888f8870de6c3f323db4435f38e849","user":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"repo":{"id":4542716,"name":"nixpkgs","full_name":"NixOS/nixpkgs","owner":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NixOS/nixpkgs","description":"Nix Packages collection","fork":false,"url":"https://api.github.com/repos/NixOS/nixpkgs","forks_url":"https://api.github.com/repos/NixOS/nixpkgs/forks","keys_url":"https://api.github.com/repos/NixOS/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NixOS/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NixOS/nixpkgs/teams","hooks_url":"https://api.github.com/repos/NixOS/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/NixOS/nixpkgs/events","assignees_url":"https://api.github.com/repos/NixOS/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/NixOS/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/NixOS/nixpkgs/tags","blobs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NixOS/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/NixOS/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/NixOS/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/NixOS/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/NixOS/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/NixOS/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/NixOS/nixpkgs/subscription","commits_url":"https://api.github.com/repos/NixOS/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/NixOS/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/NixOS/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/NixOS/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NixOS/nixpkgs/merges","archive_url":"https://api.github.com/repos/NixOS/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NixOS/nixpkgs/downloads","issues_url":"https://api.github.com/repos/NixOS/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/NixOS/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/NixOS/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/NixOS/nixpkgs/deployments","created_at":"2012-06-04T02:49:46Z","updated_at":"2016-12-02T11:53:58Z","pushed_at":"2016-12-02T16:52:54Z","git_url":"git://github.com/NixOS/nixpkgs.git","ssh_url":"git@github.com:NixOS/nixpkgs.git","clone_url":"https://github.com/NixOS/nixpkgs.git","svn_url":"https://github.com/NixOS/nixpkgs","homepage":null,"size":649176,"stargazers_count":1401,"watchers_count":1401,"language":"Nix","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1734,"mirror_url":null,"open_issues_count":1648,"forks":1734,"open_issues":1648,"watchers":1401,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/20826"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/20826"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/20826"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/20826/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/20826/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/20826/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/328c67e94057a6530a548368703bf2da3d6e00e8"}}}}
{"actor":{"display_login":"kierdavis"}}