{"action":"created","comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/38276462","id":38276462,"diff_hunk":"@@ -0,0 +1,54 @@\n+{ stdenv\n+, fetchgit\n+, makeWrapper\n+, pkgs\n+, libusb1\n+}:\n+\n+with pkgs.lib;\n+\n+stdenv.mkDerivation rec {\n+  version = \"2014-11-26\";\n+  name = \"psoc-programmer-${version}\";\n+\n+  src = fetchgit {\n+    url = \"https://github.com/lowfatcomputing/PSOC_programmer\";\n+    rev = \"1e13b2136792ef27f8c70f2f03b1b23858dec72a\";\n+    sha256 = \"1adc0fe6b1c60e5fdd7f0396aca6a73ed5595c305499926040df6f8b649aa404\";\n+  };\n+\n+  buildInputs = [ libusb1 makeWrapper ];\n+\n+  installPhase = ''\n+    # software\n+    make INC=\" -I../libhex -I../libini -I${pkgs.libusb1}/include -I.\" LIBS=\" -L${pkgs.libusb1}/lib ../libhex/libhex.a ../libini/libini.a -lusb-1.0\" INSTALL_DIR=$out/bin install\n+\n+    # wrapper around verbose config path etc.\n+    cat <<EOF > $out/bin/psoc-prog\n+    #!/usr/bin/env bash\n+    $out/bin/prog -C $out/etc/psoc-programmer -d PSOC5LP-xxx \\$*\n+    EOF\n+    chmod +x $out/bin/psoc-prog\n+\n+    # device config\n+    install -Dm644 config/config.ini $out/etc/psoc-programmer/config.ini\n+    install -Dm644 config/devices.dat $out/etc/psoc-programmer/devices.dat\n+    install -Dm644 config/fx2_kim_dump.hex $out/etc/psoc-programmer/fx2_kim_dump.hex\n+    install -Dm644 config/fx2lp_fw.hex $out/etc/psoc-programmer/fx2lp_fw.hex\n+    install -Dm644 config/nm.hex  $out/etc/psoc-programmer/nm.hex\n+\n+    # docs\n+    install -Dm644 README.md $out/share/doc/psoc-programmer/README.md\n+    install -Dm644 TODO $out/share/doc/psoc-programmer/TODO\n+    install -Dm644 docs/* $out/share/doc/psoc-programmer/\n+  '';\n+\n+  meta = {\n+    description = \"Open source tools to manipulate hex files and program a PSoC5 via FX2 USB interface.\";","path":"pkgs/tools/misc/psoc-programmer/default.nix","position":47,"original_position":47,"commit_id":"3215952e36b51b927e007c5334e8754aeea0c460","original_commit_id":"3215952e36b51b927e007c5334e8754aeea0c460","user":{"login":"jagajaga","id":2179419,"avatar_url":"https://avatars.githubusercontent.com/u/2179419?v=3","gravatar_id":"","url":"https://api.github.com/users/jagajaga","html_url":"https://github.com/jagajaga","followers_url":"https://api.github.com/users/jagajaga/followers","following_url":"https://api.github.com/users/jagajaga/following{/other_user}","gists_url":"https://api.github.com/users/jagajaga/gists{/gist_id}","starred_url":"https://api.github.com/users/jagajaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagajaga/subscriptions","organizations_url":"https://api.github.com/users/jagajaga/orgs","repos_url":"https://api.github.com/users/jagajaga/repos","events_url":"https://api.github.com/users/jagajaga/events{/privacy}","received_events_url":"https://api.github.com/users/jagajaga/received_events","type":"User","site_admin":false},"body":"Please remove dot at the end the description.","created_at":"2015-08-30T21:57:59Z","updated_at":"2015-08-30T21:57:59Z","html_url":"https://github.com/NixOS/nixpkgs/pull/9566#discussion_r38276462","pull_request_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9566","_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/38276462"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/9566#discussion_r38276462"},"pull_request":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9566"}}},"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9566","id":43720124,"html_url":"https://github.com/NixOS/nixpkgs/pull/9566","diff_url":"https://github.com/NixOS/nixpkgs/pull/9566.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/9566.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9566","number":9566,"state":"open","locked":false,"title":"psoc-programmer: init at 2014-11-26","user":{"login":"lowfatcomputing","id":10626,"avatar_url":"https://avatars.githubusercontent.com/u/10626?v=3","gravatar_id":"","url":"https://api.github.com/users/lowfatcomputing","html_url":"https://github.com/lowfatcomputing","followers_url":"https://api.github.com/users/lowfatcomputing/followers","following_url":"https://api.github.com/users/lowfatcomputing/following{/other_user}","gists_url":"https://api.github.com/users/lowfatcomputing/gists{/gist_id}","starred_url":"https://api.github.com/users/lowfatcomputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lowfatcomputing/subscriptions","organizations_url":"https://api.github.com/users/lowfatcomputing/orgs","repos_url":"https://api.github.com/users/lowfatcomputing/repos","events_url":"https://api.github.com/users/lowfatcomputing/events{/privacy}","received_events_url":"https://api.github.com/users/lowfatcomputing/received_events","type":"User","site_admin":false},"body":"* Added package for Free Software Cypress PSoC toolchain.\r\n\r\nI'd be interested in feedback or alternative suggestions (if any) about the psoc-prog wrapper script I created because of the long config directory path.\r\n\r\nI used fetchgit instead of fetchFromGitHub because fetchFromGitHub can't pull commits from branches other than master as far as I know.","created_at":"2015-08-30T20:45:14Z","updated_at":"2015-08-30T21:57:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27e395405a39fa87d4da60c01d7cf05e7547bdd6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9566/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9566/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9566/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/3215952e36b51b927e007c5334e8754aeea0c460","head":{"label":"lowfatcomputing:psoc-programmer","ref":"psoc-programmer","sha":"3215952e36b51b927e007c5334e8754aeea0c460","user":{"login":"lowfatcomputing","id":10626,"avatar_url":"https://avatars.githubusercontent.com/u/10626?v=3","gravatar_id":"","url":"https://api.github.com/users/lowfatcomputing","html_url":"https://github.com/lowfatcomputing","followers_url":"https://api.github.com/users/lowfatcomputing/followers","following_url":"https://api.github.com/users/lowfatcomputing/following{/other_user}","gists_url":"https://api.github.com/users/lowfatcomputing/gists{/gist_id}","starred_url":"https://api.github.com/users/lowfatcomputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lowfatcomputing/subscriptions","organizations_url":"https://api.github.com/users/lowfatcomputing/orgs","repos_url":"https://api.github.com/users/lowfatcomputing/repos","events_url":"https://api.github.com/users/lowfatcomputing/events{/privacy}","received_events_url":"https://api.github.com/users/lowfatcomputing/received_events","type":"User","site_admin":false},"repo":{"id":41063615,"name":"nixpkgs","full_name":"lowfatcomputing/nixpkgs","owner":{"login":"lowfatcomputing","id":10626,"avatar_url":"https://avatars.githubusercontent.com/u/10626?v=3","gravatar_id":"","url":"https://api.github.com/users/lowfatcomputing","html_url":"https://github.com/lowfatcomputing","followers_url":"https://api.github.com/users/lowfatcomputing/followers","following_url":"https://api.github.com/users/lowfatcomputing/following{/other_user}","gists_url":"https://api.github.com/users/lowfatcomputing/gists{/gist_id}","starred_url":"https://api.github.com/users/lowfatcomputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lowfatcomputing/subscriptions","organizations_url":"https://api.github.com/users/lowfatcomputing/orgs","repos_url":"https://api.github.com/users/lowfatcomputing/repos","events_url":"https://api.github.com/users/lowfatcomputing/events{/privacy}","received_events_url":"https://api.github.com/users/lowfatcomputing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lowfatcomputing/nixpkgs","description":"Nix Packages collection","fork":true,"url":"https://api.github.com/repos/lowfatcomputing/nixpkgs","forks_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/forks","keys_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/teams","hooks_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/events","assignees_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/tags","blobs_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/subscription","commits_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/merges","archive_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/downloads","issues_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/lowfatcomputing/nixpkgs/releases{/id}","created_at":"2015-08-19T22:49:37Z","updated_at":"2015-08-19T22:49:54Z","pushed_at":"2015-08-30T20:34:05Z","git_url":"git://github.com/lowfatcomputing/nixpkgs.git","ssh_url":"git@github.com:lowfatcomputing/nixpkgs.git","clone_url":"https://github.com/lowfatcomputing/nixpkgs.git","svn_url":"https://github.com/lowfatcomputing/nixpkgs","homepage":null,"size":214296,"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":"984ca122f4b03d96598f3c7bca771956855d4169","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-08-30T21:01:03Z","pushed_at":"2015-08-30T20:45:15Z","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":445972,"stargazers_count":768,"watchers_count":768,"language":"Nix","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":950,"mirror_url":null,"open_issues_count":904,"forks":950,"open_issues":904,"watchers":768,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9566"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/9566"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/9566"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/9566/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9566/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/9566/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/3215952e36b51b927e007c5334e8754aeea0c460"}}}}