Subject: [bug#79099] [PATCH 23/34] gnu/packages/n*.scm: Use make-git-version.

From: Nicolas Graves <[email-masked]>
Date: Sat, 26 Jul 2025 04:39:29 +0200

find gnu/packages/ -type f -name "n*.scm" -exec sed -i 's/(git-version /(make-git-version /g' {} +

Then manually checked the potential usage of `version` on the build-side.
---
 gnu/packages/networking.scm | 14 +++++++-------
 gnu/packages/node-xyz.scm   |  4 ++--
 gnu/packages/nutrition.scm  |  2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 9dc4b24cd04..18d73c5f1b8 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -372,7 +372,7 @@ (define-public netperf
         (commit "3bc455b23f901dae377ca0a558e1e32aa56b31c4"))
     (package
       (name "netperf")
-      (version (git-version version revision commit))
+      (version (make-git-version version revision commit))
       (source
        (origin
          (method git-fetch)
@@ -633,7 +633,7 @@ (define-public rtmpdump
         (version "2.4"))                ;as mentioned in README and man pages
     (package
       (name "rtmpdump")
-      (version (git-version version revision commit))
+      (version (make-git-version version revision commit))
       (source
        (origin
          (method git-fetch)
@@ -1564,7 +1564,7 @@ (define-public libnatpmp
         (revision "0"))
     (package
       (name "libnatpmp")
-      (version (git-version base-version revision commit))
+      (version (make-git-version base-version revision commit))
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
@@ -2065,7 +2065,7 @@ (define-public go-sctp
         (revision "3"))
     (package
       (name "go-sctp")
-      (version (git-version "0.0.0" revision commit))
+      (version (make-git-version "0.0.0" revision commit))
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
@@ -2754,7 +2754,7 @@ (define-public enet-moonlight
     (package
       (inherit enet)
       (name "enet")
-      (version (git-version "1.3.17" revision commit))
+      (version (make-git-version "1.3.17" revision commit))
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
@@ -4102,7 +4102,7 @@ (define-public dhtnet
       (name "dhtnet")
       ;; The base version is taken from the CMakeLists.txt file (see:
       ;; https://review.jami.net/plugins/gitiles/dhtnet/+/master/CMakeLists.txt#3).
-      (version (git-version "0.0.1" revision commit))
+      (version (make-git-version "0.0.1" revision commit))
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
@@ -4217,7 +4217,7 @@ (define-public iwd
         (revision "1"))
     (package
       (name "iwd")
-      (version (git-version "3.8" revision commit))
+      (version (make-git-version "3.8" revision commit))
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index c3a2ac28ef9..309686ca6dd 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -788,7 +788,7 @@ (define-public node-oop
         (revision "1"))
     (package
       (name "node-oop")
-      (version (git-version "0.0.0" revision commit))
+      (version (make-git-version "0.0.0" revision commit))
       (source
         (origin
           (method git-fetch)
@@ -1530,7 +1530,7 @@ (define-public node-stack-trace
         (revision "1"))
     (package
       (name "node-stack-trace")
-      (version (git-version "0.0.10" revision commit))
+      (version (make-git-version "0.0.10" revision commit))
       (source
         (origin
           (method git-fetch)
diff --git a/gnu/packages/nutrition.scm b/gnu/packages/nutrition.scm
index 1cfce633b5c..b770223140c 100644
--- a/gnu/packages/nutrition.scm
+++ b/gnu/packages/nutrition.scm
@@ -89,7 +89,7 @@ (define-public gourmet
         (commit "8af29c8ded24528030e5ae2ea3461f61c1e5a575"))
     (package
       (name "gourmet")
-      (version (git-version "0.17.4" revision commit))
+      (version (make-git-version "0.17.4" revision commit))
       (source
        (origin
          (method git-fetch)
-- 
2.50.1