guix_mirror_bot pushed a commit to branch master
in repository guix.

commit f3e194d6ebf5c09966c5a77381df85bc014e285d
Author: Patrick Norton <[email protected]>
AuthorDate: Tue Jan 6 08:45:03 2026 -0500

    gnu: Add go-github-com-goreleaser-nfpm-v2.
    
    * gnu/packages/golang-xyz.scm (go-github-com-goreleaser-nfpm-v2): New
    variable.
    
    Change-Id: Ic286a05ce6f67f48e826210d8717ca203706b899
    Relates-to: guix/guix!5417
    Reviewed-by: Arthur Rodrigues <[email protected]>
    Modified-by: Arthur Rodrigues <[email protected]>
    Modified-by: Sharlatan Hellseher <[email protected]>
    Signed-off-by: Sharlatan Hellseher <[email protected]>
    
    Change-Id: If2f29158facd446048c5ebb8b808da901d33bfdc
---
 gnu/packages/golang-xyz.scm | 60 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 8aaae08a37..031ef79dff 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -12739,6 +12739,66 @@ underneath and returns only matching files or 
directories, depending on the
 configuration.")
     (license license:expat)))
 
+(define-public go-github-com-goreleaser-nfpm-v2
+  (package
+    (name "go-github-com-goreleaser-nfpm-v2")
+    (version "2.44.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/goreleaser/nfpm";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "17dmzkvy3ihjjaxi10l9xc1mcg9vmlr2v1xc4a361fa22aqigz0v"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.25
+      #:import-path "github.com/goreleaser/nfpm/v2"
+      #:unpack-path "github.com/goreleaser/nfpm/v2"
+      ;; Tests fail due to read-only filesystem when trying to manipulate mode
+      ;; of the files.
+      #:test-flags
+      #~(list "-skip" "TestPrepareForPackager|TestDeepPathsWithGlobAndUmask")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-tests
+            (lambda* (#:key unpack-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" unpack-path)
+                (substitute*  "rpm/rpm_test.go"
+                  (("/bin/bash") (which "bash")))))))))
+    (native-inputs
+     (list go-github-com-caarlos0-go-version
+           go-github-com-invopop-jsonschema
+           go-github-com-muesli-mango-cobra
+           go-github-com-muesli-roff
+           go-github-com-sassoftware-go-rpmutils
+           go-github-com-stretchr-testify))
+    (propagated-inputs
+     (list go-dario-cat-mergo
+           go-github-com-aleksi-pointer
+           go-github-com-blakesmith-ar
+           go-github-com-google-rpmpack
+           go-github-com-goreleaser-chglog
+           go-github-com-goreleaser-fileglob
+           go-github-com-klauspost-compress
+           go-github-com-klauspost-pgzip
+           go-github-com-masterminds-semver-v3
+           go-github-com-protonmail-go-crypto
+           go-github-com-protonmail-gopenpgp-v2
+           go-github-com-spf13-cobra
+           go-github-com-ulikunitz-xz
+           go-gopkg-in-yaml-v3))
+    (home-page "https://github.com/goreleaser/nfpm";)
+    (synopsis "Go library to package programs in various Linux formats")
+    (description
+     "nFPM is Not FPM -- provides ways to package programs in popular Linux
+packaging formats, such as @code{deb}, @code{rpm}, @code{apk}, @code{ipk} and
+Arch.")
+    (license license:expat)))
+
 (define-public go-github-com-gorhill-cronexpr
   (package
     (name "go-github-com-gorhill-cronexpr")

Reply via email to