File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 58
58
cp -r "${ maybeCleanedSource } /." $TMP
59
59
chmod -R +w $TMP
60
60
substituteInPlace ${ stackYaml } --replace "# nix-sha256:" "nix-sha256:"
61
+ substituteInPlace ${ stackYaml } --replace "# nix-branch:" "nix-branch:"
61
62
${ pkgs . lib . optionalString ( fetchedResolver != null ) ''
62
63
substituteInPlace ${ stackYaml } --replace "${ resolver } " "${ fetchedResolver } "
63
64
'' }
@@ -90,9 +91,9 @@ concatMap (dep:
90
91
inherit ( dep ) url rev ;
91
92
inherit sha256 ;
92
93
}
93
- else builtins . fetchGit {
94
+ else builtins . fetchGit ( {
94
95
inherit ( dep ) url rev ;
95
- } ;
96
+ } // pkgs . lib . optionalAttrs ( dep ? branch && dep . branch != null ) { ref = dep . branch ; } ) ;
96
97
in map ( subdir : {
97
98
name = cabalName "${ pkgsrc } /${ subdir } " ;
98
99
inherit ( dep ) url rev ;
You can’t perform that action at this time.
0 commit comments