[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile
From: |
Fries |
Subject: |
[bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile |
Date: |
Sat, 05 Aug 2023 07:00:34 +0000 |
* gnu/packages/golang.scm (go-github-com-pkg-profile): New variable.
---
gnu/packages/golang.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 208b88d934..daa811a5dc 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,36 @@ (define-public go-github-com-dhowett-go-plist
types.")
(license license:giftware))))
+(define-public go-github-com-pkg-profile
+ (package
+ (name "go-github-com-pkg-profile")
+ (version "1.7.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pkg/profile")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ifr9gnycjwh7dbvsb5vgs9kzlr548cb4m45zvl8i8lgd3qhppy1"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/pkg/profile"
+ #:phases (modify-phases %standard-phases
+ ;; profile drops a cpu.pprof file inside its source directory
+ ;; after tests which makes it unreproducable so we remove it.
+ (add-after 'check 'delete-test-file
+ (lambda _
+ (delete-file "src/github.com/pkg/profile/cpu.pprof"))))))
+ (propagated-inputs `(("go-github-com-felixge-fgprof"
,go-github-com-felixge-fgprof)))
+ (home-page "https://github.com/pkg/profile")
+ (synopsis "Simple profiling for Go")
+ (description
+ "Profile provides a simple way to manage runtime/pprof profiling of your
+Go application.")
+ (license license:bsd-2)))
+
(define-public go-github-com-felixge-fgprof
(package
(name "go-github-com-felixge-fgprof")
--
2.41.0
- [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test, (continued)
- [bug#65072] [PATCH 02/13] gnu: Add go-github-com-chyzer-test, Fries, 2023/08/05
- [bug#65073] [PATCH 04/13] gnu: Add go-github-com-ianlancetaylor-demangle, Fries, 2023/08/05
- [bug#65078] [PATCH 05/13] gnu: Add go-github-com-google-pprof, Fries, 2023/08/05
- [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex, Fries, 2023/08/05
- [bug#65076] [PATCH 03/13] gnu: Add go-github-com-chyzer-readline, Fries, 2023/08/05
- [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile,
Fries <=
- [bug#65080] [PATCH 09/13] gnu: Add go-github-com-dbaggerman-cuba, Fries, 2023/08/05
- [bug#65077] [PATCH 06/13] gnu: Add go-github-com-felixge-fgprof, Fries, 2023/08/05
- [bug#65083] [PATCH 13/13] gnu: Add scc, Fries, 2023/08/05
- [bug#65085] [PATCH 12/13] gnu: Add go-github-com-json-iterator-go, Fries, 2023/08/05