From ebfc44f11fa5de47586a276af014350fc527c010 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 13 Dec 2024 11:22:28 +0100 Subject: [PATCH] Replace %2F with / in url for branch Signed-off-by: Matthias Beyer --- lib/vendorGitDeps.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/vendorGitDeps.nix b/lib/vendorGitDeps.nix index c3f37751..728055ca 100644 --- a/lib/vendorGitDeps.nix +++ b/lib/vendorGitDeps.nix @@ -139,8 +139,12 @@ let let p = head ps; extractAttr = attr: - if p ? ${attr} then '' - ${attr} = "${p.${attr}}" + if p ? ${attr} then let + patchedAttr = if attr == "branch" + then builtins.replaceStrings ["%2F"] ["/"] "${p.${attr}}" + else "${p.${attr}}"; + in '' + ${attr} = "${patchedAttr}" '' else ""; sourceValues = concatMapStrings extractAttr ([ "git" ] ++ knownGitParams); in