{"action":"created","comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/175295894","pull_request_review_id":104803930,"id":175295894,"diff_hunk":"@@ -0,0 +1,567 @@\n+{ config, lib, pkgs, ... }:\n+\n+with lib;\n+\n+let\n+\n+  isPath = x: builtins.substring 0 1 x == \"/\";\n+ \n+  mkExcludeFile = cfg:\n+    # Write each exclude pattern to a new line\n+    pkgs.writeText \"excludefile\" (concatStringsSep \"\\n\" cfg.exclude);\n+\n+  mkKeepArgs = cfg:\n+    # If cfg.prune.keep e.g. has a yearly attribute,\n+    # its content is passed on as --keep-yearly\n+    concatStringsSep \" \"\n+      (mapAttrsToList (x: y: \"--keep-${x}=${toString y}\") cfg.prune.keep);\n+\n+  mkBackupScript = cfg: ''\n+    on_exit()\n+    {\n+      exit_status=$?\n+      # Reset the EXIT handler, or else we're called again on 'exit' below\n+      trap - EXIT\n+      ${cfg.postHook}\n+      exit $exit_status\n+    }\n+    trap 'on_exit' INT TERM QUIT EXIT\n+\n+    archiveName=\"$archiveName-$(date ${cfg.dateFormat})\"\n+    ${cfg.preHook}\n+  '' + optionalString cfg.doInit ''\n+    # Run borg init if the repo doesn't exist yet\n+    if ! borg list > /dev/null; then\n+      borg init \\\n+        --encryption ${cfg.encryption.mode} \\\n+        $extraInitArgs\n+      ${cfg.postInit}\n+    fi\n+  '' + ''\n+    archiveSuffix=\"${optionalString cfg.appendFailedSuffix \".failed\"}\"\n+    borg create \\\n+      --compression ${cfg.compression} \\\n+      --exclude-from ${mkExcludeFile cfg} \\\n+      $extraCreateArgs \\\n+      \"::$archiveName$archiveSuffix\" \\\n+      ${escapeShellArgs cfg.paths}\n+  '' + optionalString cfg.appendFailedSuffix ''\n+    borg rename \"::$archiveName.failed\" \"$archiveName\"\n+  '' + ''\n+    ${cfg.postCreate}\n+  '' + optionalString (cfg.prune.keep != { }) ''\n+    borg prune \\\n+      ${mkKeepArgs cfg} \\\n+      --prefix ${escapeShellArg cfg.prune.prefix} \\\n+      $extraPruneArgs\n+    ${cfg.postPrune}\n+  '';\n+\n+  mkPassEnv = cfg: with cfg.encryption;\n+    if passCommand != null then\n+      { BORG_PASSCOMMAND = passCommand; }\n+    else if passphrase != null then\n+      { BORG_PASSPHRASE = passphrase; }\n+    else { };\n+\n+  mkBackupService = name: cfg: \n+    let\n+      userHome = config.users.users.${cfg.user}.home;\n+    in nameValuePair \"borgbackup-job-${name}\" {\n+      description = \"BorgBackup job ${name}\";\n+      path = with pkgs; [\n+        borgbackup openssh\n+      ];\n+      script = mkBackupScript cfg;\n+      serviceConfig = {\n+        User = cfg.user;\n+        Group = cfg.group;\n+        # Only run when no other process is using CPU or disk\n+        CPUSchedulingPolicy = \"idle\";\n+        IOSchedulingClass = \"idle\";\n+        ProtectSystem = \"strict\";\n+        ReadWritePaths =\n+          [ \"${userHome}/.config/borg\" \"${userHome}/.cache/borg\" ]\n+          # Borg needs write access to repo if it is not remote\n+          ++ optional (isPath cfg.repo) cfg.repo;\n+        PrivateTmp = true;\n+      };\n+      environment = {\n+        BORG_REPO = cfg.repo;\n+        inherit (cfg) archiveName;\n+        inherit (cfg) extraInitArgs extraCreateArgs extraPruneArgs;\n+      } // (mkPassEnv cfg) // cfg.environment;\n+      inherit (cfg) startAt;\n+    };\n+\n+  # Paths listed in ReadWritePaths must exist before service is started\n+  mkActivationScript = name: cfg:\n+    let\n+      install = \"install -o ${cfg.user} -g ${cfg.group}\";\n+    in\n+      nameValuePair \"borgbackup-job-${name}\" (stringAfter [ \"users\" ] (\n+        ''\n+          # Eensure that the home directory already exists\n+          # We can't assert createHome == true because that's not the case for root\n+          cd \"${config.users.users.${cfg.user}.home}\"                                                                                                         \n+          ${install} -d .config/borg\n+          ${install} -d .cache/borg\n+        '' + optionalString (isPath cfg.repo) ''                                                                                                              \n+          ${install} -d ${escapeShellArg cfg.repo}\n+        ''\n+      ));\n+\n+  mkPassAssertion = name: cfg: {\n+    assertion = with cfg.encryption;\n+      mode != \"none\" -> passCommand != null || passphrase != null;\n+    message =\n+      ''passCommand or passphrase have to be specified ''\n+      + ''because borgbackup.jobs.${name}.encryption != \"none\"'';\n+  };\n+\n+  mkRepoService = name: cfg:\n+    nameValuePair \"borgbackup-repo-${name}\" {\n+      description = \"Create BorgBackup repository ${name} directory\";\n+      script = ''\n+        mkdir -p ${escapeShellArg cfg.path}\n+        chown ${cfg.user}:${cfg.group} ${escapeShellArg cfg.path}\n+      '';\n+      serviceConfig = {\n+        # The service's only task is to ensure that the specified path exists\n+        Type = \"oneshot\";\n+      };\n+      wantedBy = [ \"multi-user.target\" ];\n+    };\n+\n+  mkAuthorizedKey = cfg: appendOnly: key:\n+    let\n+      restrictedArg = \"--restrict-to-repository ${escapeShellArg cfg.path}\";\n+      appendOnlyArg = optionalString appendOnly \"--append-only\";\n+      quotaArg = optionalString (cfg.quota != null) \"--storage-quota ${cfg.quota}\";\n+      command = \"borg serve ${restrictedArg} ${appendOnlyArg} ${quotaArg}\";","path":"nixos/modules/services/backup/borgbackup.nix","position":141,"original_position":141,"commit_id":"e7cb7b612b05b490655e448947abf78508ade017","original_commit_id":"e7cb7b612b05b490655e448947abf78508ade017","user":{"login":"bjornfor","id":133602,"avatar_url":"https://avatars1.githubusercontent.com/u/133602?v=4","gravatar_id":"","url":"https://api.github.com/users/bjornfor","html_url":"https://github.com/bjornfor","followers_url":"https://api.github.com/users/bjornfor/followers","following_url":"https://api.github.com/users/bjornfor/following{/other_user}","gists_url":"https://api.github.com/users/bjornfor/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornfor/subscriptions","organizations_url":"https://api.github.com/users/bjornfor/orgs","repos_url":"https://api.github.com/users/bjornfor/repos","events_url":"https://api.github.com/users/bjornfor/events{/privacy}","received_events_url":"https://api.github.com/users/bjornfor/received_events","type":"User","site_admin":false},"body":"Feature request. Add optional \"cd ${cfg.path}\" in front of that \"borg server\" (Inspired by http://borgbackup.readthedocs.io/en/stable/deployment/central-backup-server.html#restrictions.) This allows clients to ignore the server directory layout, and can use repo urls like backup@server:myrepo.","created_at":"2018-03-18T17:05:25Z","updated_at":"2018-03-18T17:05:25Z","html_url":"https://github.com/NixOS/nixpkgs/pull/36927#discussion_r175295894","pull_request_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/36927","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/175295894"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/36927#discussion_r175295894"},"pull_request":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/36927"}}},"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/36927","id":174767465,"html_url":"https://github.com/NixOS/nixpkgs/pull/36927","diff_url":"https://github.com/NixOS/nixpkgs/pull/36927.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/36927.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/36927","number":36927,"state":"open","locked":false,"title":"nixos/borgbackup: init","user":{"login":"dotlambda","id":6806011,"avatar_url":"https://avatars2.githubusercontent.com/u/6806011?v=4","gravatar_id":"","url":"https://api.github.com/users/dotlambda","html_url":"https://github.com/dotlambda","followers_url":"https://api.github.com/users/dotlambda/followers","following_url":"https://api.github.com/users/dotlambda/following{/other_user}","gists_url":"https://api.github.com/users/dotlambda/gists{/gist_id}","starred_url":"https://api.github.com/users/dotlambda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotlambda/subscriptions","organizations_url":"https://api.github.com/users/dotlambda/orgs","repos_url":"https://api.github.com/users/dotlambda/repos","events_url":"https://api.github.com/users/dotlambda/events{/privacy}","received_events_url":"https://api.github.com/users/dotlambda/received_events","type":"User","site_admin":false},"body":"###### Motivation for this change\r\nI want a secure way to do regular remote backups.\r\nBorg has a nice feature called [append-only mode](http://borgbackup.readthedocs.io/en/stable/usage/notes.html#append-only-mode). To use it, I implemented more or less two modules: a server-side and a client-side one.\r\nTo read more about forcing append-only mode via SSH, look here: http://borgbackup.readthedocs.io/en/stable/usage/serve.html#examples\r\n\r\nI was inspired by @phdoerfler (https://github.com/r-raymond/nixos-mailserver/pull/93) and @bjornfor (https://github.com/bjornfor/nixos-config/blob/a570f4f7e4644520f430b310b4a94bb62decfb40/options/borg-backup.nix).\r\n\r\n###### Things done\r\n\r\n<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->\r\n\r\n- [x] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `build-use-sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS)\r\n- Built on platform(s)\r\n   - [x] NixOS\r\n   - [ ] macOS\r\n   - [ ] other Linux distributions\r\n- [x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))\r\n- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run \"nox-review wip\"`\r\n- [ ] 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/cc @Mic92 who wrote the previous borg test","created_at":"2018-03-13T19:35:16Z","updated_at":"2018-03-18T17:05:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"007355e82b8066f6d2c004885bbae8de0d28b233","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":737642262,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/10.rebuild-darwin:%200","name":"10.rebuild-darwin: 0","color":"eeffee","default":false},{"id":737642408,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/10.rebuild-linux:%200","name":"10.rebuild-linux: 0","color":"eeffee","default":false},{"id":60265212,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20nixos","name":"6.topic: nixos","color":"fef2c0","default":false},{"id":290122884,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/8.has:%20module%20(update)","name":"8.has: module (update)","color":"009800","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/36927/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/36927/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/36927/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/e7cb7b612b05b490655e448947abf78508ade017","head":{"label":"dotlambda:borg-module","ref":"borg-module","sha":"e7cb7b612b05b490655e448947abf78508ade017","user":{"login":"dotlambda","id":6806011,"avatar_url":"https://avatars2.githubusercontent.com/u/6806011?v=4","gravatar_id":"","url":"https://api.github.com/users/dotlambda","html_url":"https://github.com/dotlambda","followers_url":"https://api.github.com/users/dotlambda/followers","following_url":"https://api.github.com/users/dotlambda/following{/other_user}","gists_url":"https://api.github.com/users/dotlambda/gists{/gist_id}","starred_url":"https://api.github.com/users/dotlambda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotlambda/subscriptions","organizations_url":"https://api.github.com/users/dotlambda/orgs","repos_url":"https://api.github.com/users/dotlambda/repos","events_url":"https://api.github.com/users/dotlambda/events{/privacy}","received_events_url":"https://api.github.com/users/dotlambda/received_events","type":"User","site_admin":false},"repo":{"id":95651842,"name":"nixpkgs","full_name":"dotlambda/nixpkgs","owner":{"login":"dotlambda","id":6806011,"avatar_url":"https://avatars2.githubusercontent.com/u/6806011?v=4","gravatar_id":"","url":"https://api.github.com/users/dotlambda","html_url":"https://github.com/dotlambda","followers_url":"https://api.github.com/users/dotlambda/followers","following_url":"https://api.github.com/users/dotlambda/following{/other_user}","gists_url":"https://api.github.com/users/dotlambda/gists{/gist_id}","starred_url":"https://api.github.com/users/dotlambda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotlambda/subscriptions","organizations_url":"https://api.github.com/users/dotlambda/orgs","repos_url":"https://api.github.com/users/dotlambda/repos","events_url":"https://api.github.com/users/dotlambda/events{/privacy}","received_events_url":"https://api.github.com/users/dotlambda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dotlambda/nixpkgs","description":"Nix Packages collection","fork":true,"url":"https://api.github.com/repos/dotlambda/nixpkgs","forks_url":"https://api.github.com/repos/dotlambda/nixpkgs/forks","keys_url":"https://api.github.com/repos/dotlambda/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotlambda/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotlambda/nixpkgs/teams","hooks_url":"https://api.github.com/repos/dotlambda/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/dotlambda/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/dotlambda/nixpkgs/events","assignees_url":"https://api.github.com/repos/dotlambda/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/dotlambda/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/dotlambda/nixpkgs/tags","blobs_url":"https://api.github.com/repos/dotlambda/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotlambda/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotlambda/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotlambda/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotlambda/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/dotlambda/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/dotlambda/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/dotlambda/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/dotlambda/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/dotlambda/nixpkgs/subscription","commits_url":"https://api.github.com/repos/dotlambda/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotlambda/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotlambda/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotlambda/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotlambda/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/dotlambda/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotlambda/nixpkgs/merges","archive_url":"https://api.github.com/repos/dotlambda/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotlambda/nixpkgs/downloads","issues_url":"https://api.github.com/repos/dotlambda/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/dotlambda/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/dotlambda/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/dotlambda/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotlambda/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/dotlambda/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/dotlambda/nixpkgs/deployments","created_at":"2017-06-28T09:21:37Z","updated_at":"2017-06-28T09:22:05Z","pushed_at":"2018-03-18T16:57:17Z","git_url":"git://github.com/dotlambda/nixpkgs.git","ssh_url":"git@github.com:dotlambda/nixpkgs.git","clone_url":"https://github.com/dotlambda/nixpkgs.git","svn_url":"https://github.com/dotlambda/nixpkgs","homepage":null,"size":660744,"stargazers_count":0,"watchers_count":0,"language":"Nix","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NixOS:master","ref":"master","sha":"4fe75d11b2efdd3325ee8eaa4347626f1a950dbd","user":{"login":"NixOS","id":487568,"avatar_url":"https://avatars3.githubusercontent.com/u/487568?v=4","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://avatars3.githubusercontent.com/u/487568?v=4","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":"2018-03-18T16:56:50Z","pushed_at":"2018-03-18T17:03: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":752078,"stargazers_count":2290,"watchers_count":2290,"language":"Nix","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2641,"mirror_url":null,"archived":false,"open_issues_count":3168,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":2641,"open_issues":3168,"watchers":2290,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/36927"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/36927"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/36927"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/36927/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/36927/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/36927/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/e7cb7b612b05b490655e448947abf78508ade017"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bjornfor"}}