From 1c50972d30524d023a195636cb5ba546b9c7c038 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Thu, 23 Nov 2023 20:09:33 +0800 Subject: [PATCH] rosenthal: cloudflared: Adjust version use in G-expressions. * rosenthal/packages/networking.scm (cloudflared): Replace #$version with #$(package-version this-package). --- rosenthal/packages/networking.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rosenthal/packages/networking.scm b/rosenthal/packages/networking.scm index b2aba2d..0d9a31e 100644 --- a/rosenthal/packages/networking.scm +++ b/rosenthal/packages/networking.scm @@ -35,7 +35,7 @@ #:build-flags #~(list (string-append "-ldflags=" - " -X main.Version=" #$version + " -X main.Version=" #$(package-version this-package) " -X github.com/cloudflare/cloudflared/cmd/cloudflared/updater.BuiltForPackageManager=Guix")) #:phases #~(modify-phases %standard-phases @@ -47,7 +47,7 @@ (let ((src "src/github.com/cloudflare/cloudflared/cloudflared_man_template") (dst (string-append #$output "/share/man/man1/cloudflared.1"))) (substitute* src - (("\\$\\{VERSION\\}") #$version)) + (("\\$\\{VERSION\\}") #$(package-version this-package))) (mkdir-p (dirname dst)) (copy-file src dst))))))) (home-page "https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/")