From 417b29aaff765d10dad1e98d7aaab8ea0120b67d Mon Sep 17 00:00:00 2001 From: isabel Date: Sat, 8 Nov 2025 18:33:02 +0000 Subject: [PATCH] feat: pass owner and repo via derviationArgs --- fetcher.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fetcher.nix b/fetcher.nix index 2fb3ccc..cb45d33 100644 --- a/fetcher.nix +++ b/fetcher.nix @@ -90,6 +90,7 @@ lib.makeOverridable ( revWithTag = if tag != null then "refs%2Ftags%2F${tag}" else rev; fetcherArgs = + _: passthruAttrs // ( if useFetchGit then @@ -105,12 +106,25 @@ lib.makeOverridable ( ; url = baseUrl; inherit passthru; + derivationArgs = { + inherit + owner + repo + ; + }; } else { url = "${baseUrl}/archive/${revWithTag}"; extension = "tar.gz"; + derivationArgs = { + inherit + owner + repo + ; + }; + passthru = { gitRepoUrl = baseUrl; } -- 2.51.2