From 669d150f48cd091752e99bb0a5aa68764fe949dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Wed, 17 Nov 2021 23:59:09 +0100
Subject: [PATCH] gnu: graphene: Depend on a fixed version of 'git-minimal'.

* gnu/packages/version-control.scm (git-minimal/fixed): New variable.
* gnu/packages/gtk.scm (graphene)[native-inputs]: Use it instead of
GIT-MINIMAL.
---
 gnu/packages/gtk.scm             |  2 +-
 gnu/packages/version-control.scm | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 859e910e49..09e044d7e7 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -2488,7 +2488,7 @@ (define-public graphene
               '("-Dintrospection=false")
               '()))))
     (native-inputs
-     `(("git" ,git-minimal)
+     `(("git" ,git-minimal/fixed)
        ("gobject-introspection" ,gobject-introspection)
        ("mutest" ,mutest)
        ("pkg-config" ,pkg-config)))
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 8b879d7dd5..b8f99f1885 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -657,6 +657,18 @@ (define-public git-minimal
        ("perl" ,perl)
        ("zlib" ,zlib)))))
 
+(define-public git-minimal/fixed
+  ;; Version that rarely changes, depended on by Graphene/GTK+.
+  (package/inherit git-minimal
+    (version "2.33.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://kernel.org/software/scm/git/git-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "0bqz401dyp8wnjj3k5ahrniwk4dalndysqazzwdvv25hqbkacm70"))))))
+
 (define-public git2cl
   (let ((commit "1d74d4c0d933fc69ed5cec838c73502584dead05"))
     (package