Skip to content

Commit

Permalink
Make revision attr mandatory & improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Profpatsch committed Sep 3, 2018
1 parent ea744d4 commit 944d1b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,16 @@ nixpkgs_git_repository(name, revision, sha256)
<td>
<p><code>String; optional</code></p>
<p>The URI of the remote Git repository. This must be a HTTP
URL. There is currently no support for authentication.</p>
URL. There is currently no support for authentication.
Defaults to <a href="https://github.com/NixOS/nixpkgs">
upstream nixpkgs.</a></p>
</td>
</tr>
<tr>
<td><code>sha256</code></td>
<td>
<p><code>String; optional</code></p>
<p>The SHA256 used to verify the integrity of the repository</p>
<p>The SHA256 used to verify the integrity of the repository.</p>
</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion nixpkgs/nixpkgs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def _nixpkgs_git_repository_impl(ctx):
nixpkgs_git_repository = repository_rule(
implementation = _nixpkgs_git_repository_impl,
attrs = {
"revision": attr.string(),
"revision": attr.string(mandatory = True),
"remote": attr.string(default = "https://github.com/NixOS/nixpkgs"),
"sha256": attr.string(),
},
Expand Down

0 comments on commit 944d1b0

Please sign in to comment.