Skip to content

Commit

Permalink
Merge pull request tweag#28 from philderbeast/patch-1
Browse files Browse the repository at this point in the history
Mark repository revision as required, fixes tweag#26.
  • Loading branch information
mboes authored Sep 3, 2018
2 parents 6c6cad5 + 944d1b0 commit b83e0d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ nixpkgs_git_repository(name, revision, sha256)
<tr>
<td><code>revision</code></td>
<td>
<p><code>String; optional</code></p>
<p><code>String; required</code></p>
<p>Git commit hash or tag identifying the version of Nixpkgs
to use.</p>
</td>
Expand All @@ -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 b83e0d0

Please sign in to comment.