From 79129b5c16d299b747b5276afd80b1f325f786ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Gaspard?= Date: Thu, 14 Jan 2021 11:18:35 +0100 Subject: [PATCH] make fetchgit work when not fetching from master This is required so that fetching dependencies from a feature branch is possible. See also https://github.com/NixOS/nix/pull/3408 --- lib.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib.nix b/lib.nix index e347645..84440ba 100644 --- a/lib.nix +++ b/lib.nix @@ -108,6 +108,7 @@ rec url = val.git; } // lib.optionalAttrs (val ? rev) { rev = val.rev; + ref = val.rev; } // lib.optionalAttrs (val ? branch) { ref = val.branch; } // lib.optionalAttrs (val ? tag) {