Commit 21677a6b authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

fetchgit: pass rev as revCustom and make overridable

parent dbf76b7c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ lib.makeOverridable (
          rev ? null,
          name ? urlToName {
            inherit url;
            rev = lib.revOrTag rev finalAttrs.tag;
            rev = lib.revOrTag finalAttrs.revCustom finalAttrs.tag;
            # when rootDir is specified, avoid invalidating the result when rev changes
            append = if rootDir != "" then "-${lib.strings.sanitizeDerivationName rootDir}" else "";
          },
@@ -174,9 +174,10 @@ lib.makeOverridable (
              gitConfigFile
              ;
            inherit tag;
            revCustom = rev;
            rev = getRevWithTag {
              inherit (finalAttrs) tag;
              inherit rev;
              rev = finalAttrs.revCustom;
            };

            postHook =