summaryrefslogtreecommitdiff
path: root/npins/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'npins/default.nix')
-rw-r--r--npins/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/npins/default.nix b/npins/default.nix
index 6592476..8955703 100644
--- a/npins/default.nix
+++ b/npins/default.nix
@@ -107,12 +107,14 @@ let
"${if matched == null then "source" else builtins.head matched}${appendShort}";
name = urlToName url revision;
in
- builtins.fetchGit {
+ builtins.fetchGit ({
rev = revision;
inherit name;
# hash = hash;
inherit url submodules;
- };
+ } // (if branch != null then {
+ ref = "refs/heads/${branch}";
+ } else {}));
mkPyPiSource =
{ url, hash, ... }: