Skip to content

Commit b83e0d0

Browse files
authoredSep 3, 2018
Merge pull request #28 from philderbeast/patch-1
Mark repository revision as required, fixes #26.
2 parents 6c6cad5 + 944d1b0 commit b83e0d0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

‎README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ nixpkgs_git_repository(name, revision, sha256)
6969
<tr>
7070
<td><code>revision</code></td>
7171
<td>
72-
<p><code>String; optional</code></p>
72+
<p><code>String; required</code></p>
7373
<p>Git commit hash or tag identifying the version of Nixpkgs
7474
to use.</p>
7575
</td>
@@ -79,14 +79,16 @@ nixpkgs_git_repository(name, revision, sha256)
7979
<td>
8080
<p><code>String; optional</code></p>
8181
<p>The URI of the remote Git repository. This must be a HTTP
82-
URL. There is currently no support for authentication.</p>
82+
URL. There is currently no support for authentication.
83+
Defaults to <a href="https://github.com/NixOS/nixpkgs">
84+
upstream nixpkgs.</a></p>
8385
</td>
8486
</tr>
8587
<tr>
8688
<td><code>sha256</code></td>
8789
<td>
8890
<p><code>String; optional</code></p>
89-
<p>The SHA256 used to verify the integrity of the repository</p>
91+
<p>The SHA256 used to verify the integrity of the repository.</p>
9092
</td>
9193
</tr>
9294
</tbody>

‎nixpkgs/nixpkgs.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def _nixpkgs_git_repository_impl(ctx):
1313
nixpkgs_git_repository = repository_rule(
1414
implementation = _nixpkgs_git_repository_impl,
1515
attrs = {
16-
"revision": attr.string(),
16+
"revision": attr.string(mandatory = True),
1717
"remote": attr.string(default = "https://github.com/NixOS/nixpkgs"),
1818
"sha256": attr.string(),
1919
},

0 commit comments

Comments
 (0)
Please sign in to comment.