{"action":"created","comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/23221364","id":23221364,"diff_hunk":"@@ -0,0 +1,115 @@\n+{ stdenv, fetchurl\n+, unzip, gnu-efi, efibootmgr, dosfstools, imagemagick }:\n+\n+assert (stdenv.system == \"x86_64-linux\" ||stdenv.system == \"i686-linux\");\n+\n+stdenv.mkDerivation rec {\n+\n+  name = \"refind-${version}\";\n+  srcName = \"refind-src-${version}\";\n+  version = \"0.8.4\";\n+\n+  src = fetchurl {\n+    url = \"http://downloads.sourceforge.net/project/refind/${version}/${srcName}.zip\";\n+    sha256 = \"09g6x41fc7vvwv2y9kggjmazyhdvkn8qr02v769x33f20bfiz2zc\";\n+  };\n+\n+  buildInputs = [ unzip gnu-efi efibootmgr dosfstools imagemagick ];\n+\n+  HOSTARCH =\n+    if stdenv.system == \"x86_64-linux\" then \"x64\"\n+    else if stdenv.system == \"i686-linux\" then \"ia32\" else \"null\";\n+\n+  patchPhase = ''\n+    sed -e 's|-DEFI_FUNCTION_WRAPPER|-DEFI_FUNCTION_WRAPPER -maccumulate-outgoing-args|g' -i Make.common\n+    sed -e 's|-DEFIX64|-DEFIX64 -maccumulate-outgoing-args|g' -i Make.common\n+    sed -e 's|-m64|-maccumulate-outgoing-args -m64|g' -i filesystems/Make.gnuefi","path":"pkgs/tools/bootloaders/refind/default.nix","position":26,"original_position":26,"commit_id":"f92889429229b4bc75bcb8a7536a7e6726e353a2","original_commit_id":"f92889429229b4bc75bcb8a7536a7e6726e353a2","user":{"login":"lethalman","id":480920,"avatar_url":"https://avatars.githubusercontent.com/u/480920?v=3","gravatar_id":"","url":"https://api.github.com/users/lethalman","html_url":"https://github.com/lethalman","followers_url":"https://api.github.com/users/lethalman/followers","following_url":"https://api.github.com/users/lethalman/following{/other_user}","gists_url":"https://api.github.com/users/lethalman/gists{/gist_id}","starred_url":"https://api.github.com/users/lethalman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethalman/subscriptions","organizations_url":"https://api.github.com/users/lethalman/orgs","repos_url":"https://api.github.com/users/lethalman/repos","events_url":"https://api.github.com/users/lethalman/events{/privacy}","received_events_url":"https://api.github.com/users/lethalman/received_events","type":"User","site_admin":false},"body":"It's trivial enough and easier to maintain across upgrades. With patches it's more likely to have failing hunks. One liners are usually better patched with sed than a diff.","created_at":"2015-01-20T13:26:37Z","updated_at":"2015-01-20T13:26:37Z","html_url":"https://github.com/NixOS/nixpkgs/pull/5757#discussion_r23221364","pull_request_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/5757","_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/23221364"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/5757#discussion_r23221364"},"pull_request":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/5757"}}},"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/5757","id":27324416,"html_url":"https://github.com/NixOS/nixpkgs/pull/5757","diff_url":"https://github.com/NixOS/nixpkgs/pull/5757.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/5757.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/5757","number":5757,"state":"open","locked":false,"title":"rEFInd (version 0.8.4): New Package","user":{"login":"AndersonTorres","id":5954806,"avatar_url":"https://avatars.githubusercontent.com/u/5954806?v=3","gravatar_id":"","url":"https://api.github.com/users/AndersonTorres","html_url":"https://github.com/AndersonTorres","followers_url":"https://api.github.com/users/AndersonTorres/followers","following_url":"https://api.github.com/users/AndersonTorres/following{/other_user}","gists_url":"https://api.github.com/users/AndersonTorres/gists{/gist_id}","starred_url":"https://api.github.com/users/AndersonTorres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndersonTorres/subscriptions","organizations_url":"https://api.github.com/users/AndersonTorres/orgs","repos_url":"https://api.github.com/users/AndersonTorres/repos","events_url":"https://api.github.com/users/AndersonTorres/events{/privacy}","received_events_url":"https://api.github.com/users/AndersonTorres/received_events","type":"User","site_admin":false},"body":"rEFInd is a graphical, EFI-based boot manager","created_at":"2015-01-14T03:20:26Z","updated_at":"2015-01-20T13:26:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03b898531b0a3be3f320c88a6ac9292a7ee625c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/5757/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/5757/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/5757/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/f92889429229b4bc75bcb8a7536a7e6726e353a2","head":{"label":"AndersonTorres:refind","ref":"refind","sha":"f92889429229b4bc75bcb8a7536a7e6726e353a2","user":{"login":"AndersonTorres","id":5954806,"avatar_url":"https://avatars.githubusercontent.com/u/5954806?v=3","gravatar_id":"","url":"https://api.github.com/users/AndersonTorres","html_url":"https://github.com/AndersonTorres","followers_url":"https://api.github.com/users/AndersonTorres/followers","following_url":"https://api.github.com/users/AndersonTorres/following{/other_user}","gists_url":"https://api.github.com/users/AndersonTorres/gists{/gist_id}","starred_url":"https://api.github.com/users/AndersonTorres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndersonTorres/subscriptions","organizations_url":"https://api.github.com/users/AndersonTorres/orgs","repos_url":"https://api.github.com/users/AndersonTorres/repos","events_url":"https://api.github.com/users/AndersonTorres/events{/privacy}","received_events_url":"https://api.github.com/users/AndersonTorres/received_events","type":"User","site_admin":false},"repo":{"id":14558389,"name":"nixpkgs","full_name":"AndersonTorres/nixpkgs","owner":{"login":"AndersonTorres","id":5954806,"avatar_url":"https://avatars.githubusercontent.com/u/5954806?v=3","gravatar_id":"","url":"https://api.github.com/users/AndersonTorres","html_url":"https://github.com/AndersonTorres","followers_url":"https://api.github.com/users/AndersonTorres/followers","following_url":"https://api.github.com/users/AndersonTorres/following{/other_user}","gists_url":"https://api.github.com/users/AndersonTorres/gists{/gist_id}","starred_url":"https://api.github.com/users/AndersonTorres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndersonTorres/subscriptions","organizations_url":"https://api.github.com/users/AndersonTorres/orgs","repos_url":"https://api.github.com/users/AndersonTorres/repos","events_url":"https://api.github.com/users/AndersonTorres/events{/privacy}","received_events_url":"https://api.github.com/users/AndersonTorres/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndersonTorres/nixpkgs","description":"Nix Packages collection, AndersonTorres's fork","fork":true,"url":"https://api.github.com/repos/AndersonTorres/nixpkgs","forks_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/forks","keys_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/teams","hooks_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/events","assignees_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/tags","blobs_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/subscription","commits_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/issues/comments/{number}","contents_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/merges","archive_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/downloads","issues_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/AndersonTorres/nixpkgs/releases{/id}","created_at":"2013-11-20T14:14:31Z","updated_at":"2015-01-17T04:33:41Z","pushed_at":"2015-01-18T21:48:19Z","git_url":"git://github.com/AndersonTorres/nixpkgs.git","ssh_url":"git@github.com:AndersonTorres/nixpkgs.git","clone_url":"https://github.com/AndersonTorres/nixpkgs.git","svn_url":"https://github.com/AndersonTorres/nixpkgs","homepage":"","size":169182,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"NixOS:master","ref":"master","sha":"db69fcd0bcdeb938a15fe7b51fd076ed1fec8c4c","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}","created_at":"2012-06-04T02:49:46Z","updated_at":"2015-01-20T13:06:36Z","pushed_at":"2015-01-20T13:09:25Z","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":267219,"stargazers_count":506,"watchers_count":506,"language":"Nix","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":601,"mirror_url":null,"open_issues_count":535,"forks":601,"open_issues":535,"watchers":506,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/5757"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/5757"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/5757"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/5757/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/5757/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/5757/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/f92889429229b4bc75bcb8a7536a7e6726e353a2"}}}}