From 372654c868433ccb4a000696b122b383269c03b5 Mon Sep 17 00:00:00 2001 From: "Julie B." Date: Tue, 21 May 2024 10:52:45 +0200 Subject: [PATCH] fetchFromGitLab: force re-fetch when rev changes --- pkgs/build-support/fetchgitlab/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchgitlab/default.nix b/pkgs/build-support/fetchgitlab/default.nix index 749883f..21440b2 100644 --- a/pkgs/build-support/fetchgitlab/default.nix +++ b/pkgs/build-support/fetchgitlab/default.nix @@ -2,7 +2,9 @@ lib.makeOverridable ( # gitlab example -{ owner, repo, rev, protocol ? "https", domain ? "gitlab.com", name ? "source", group ? null +{ owner, repo, rev, protocol ? "https", domain ? "gitlab.com", group ? null +, pname ? lib.concatStringsSep "-" ([ "source" domain ] ++ (lib.optional (group != null) group) ++ [ owner repo ]) +, name ? "${pname}-${rev}" , fetchSubmodules ? false, leaveDotGit ? false , deepClone ? false, forceFetchGit ? false , sparseCheckout ? [] -- 2.45.2