From 6a2e38246de69e5fbce5075061473a954fef6883 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 7 Oct 2025 18:39:29 +0100 Subject: [PATCH] gnu: Add go-github-com-denisbrodbeck-machineid. * gnu/packages/golang-xyz.scm (go-github-com-denisbrodbeck-machineid): New variable. Change-Id: I10b716aaa04bcd88138b8cb9aff6d56e131d9584 --- gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 72363fdb646a7d757786aa113a15583a8ccc9365..afdc780def7f43447be148a5989fd4c2f83fce2c 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -5680,6 +5680,35 @@ information about the music/image/video that is Now Playing on the system.") formatting information, rather than the current locale name.") (license license:expat))) +(define-public go-github-com-denisbrodbeck-machineid + (package + (name "go-github-com-denisbrodbeck-machineid") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/denisbrodbeck/machineid") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "075rqb2f9hla9jwc6823jkkb3xcv6azz3phndbssssn2dps07cib")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/denisbrodbeck/machineid" + #:test-flags + #~(list "-vet=off" ;Go@1.24 forces vet, but tests are not ready yet. + ;; id_test.go:8: machineid: open /etc/machine-id: no such file + ;; or directory + "-skip" "TestID|TestProtectedID"))) + (home-page "https://github.com/denisbrodbeck/machineid") + (synopsis "Read the unique machine ID of most host OS's") + (description + "This package implements functionality for reading the unique machine +ID (@code{/etc/machine-id}) of most OSs (without admin privileges).") + (license license:expat))) + (define-public go-github-com-dennwc-btrfs (package (name "go-github-com-dennwc-btrfs")