guix_mirror_bot pushed a commit to branch master
in repository guix.
commit ec5fb6678f8268437b1940f7ed2f2b72d62ab4e0
Author: Noé Lopez <[email protected]>
AuthorDate: Wed Feb 4 22:50:15 2026 +0100
gnu: Add rsgain.
* gnu/packages/audio.scm (rsgain): New variable.
Merges guix/guix!6137
Change-Id: I4c2d5de17c2af2128cd81649899f9fdaf69c1521
Modified-by: Cayetano Santos <[email protected]>
---
gnu/packages/audio.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index ddc8602f0d..2601d825da 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -60,6 +60,7 @@
;;; Copyright © 2025 Isidor Zeuner <[email protected]>
;;; Copyright © 2025 Evgenii Klimov <[email protected]>
;;; Copyright © 2026 Luis Guilherme Coelho <[email protected]>
+;;; Copyright © 2026 Noé Lopez <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -92,6 +93,7 @@
#:use-module (gnu packages cmake)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
+ #:use-module (gnu packages crypto)
#:use-module (gnu packages curl)
#:use-module (gnu packages dbm)
#:use-module (gnu packages documentation)
@@ -6037,6 +6039,56 @@ Python projects to scan and/or tag audio files.")
;; 'setup.py' claims LGPL2+, 'LICENSE' is LGPLv2.1.
(license license:lgpl2.1+)))
+(define-public rsgain
+ (package
+ (name "rsgain")
+ (version "3.6")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/complexlogic/rsgain.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1bnpmm3bxij0l54i39vr70q3l1gdaac3l4vdv76pcdk9nlydmavn"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Remove bundled dependencies.
+ #~(delete-file-recursively "src/external"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:tests? #f ;no tests
+ #:configure-flags
+ #~(list "-DINSTALL_MANPAGE=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'link-unbundled-libraries
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "CMakeLists.txt"
+ (("find_package(PkgConfig MODULE REQUIRED)" all)
+ (string-append all "\nfind_package (CRCpp REQUIRED)")))
+ (substitute* "src/tag.cpp"
+ (("external/CRC.h")
+ "CRC.h")))))))
+ (native-inputs (list pkg-config gzip))
+ (inputs
+ (list crcpp
+ ffmpeg
+ fmt
+ libebur128
+ libinih
+ taglib
+ zlib))
+ (home-page "https://github.com/complexlogic/rsgain")
+ (synopsis "ReplayGain 2.0 tagging utility")
+ (description "This package provides @acronym{rsgain, really simple gain}, a
+ReplayGain 2.0 command line utility. rsgain applies loudness metadata tags to
+files, while leaving the audio stream untouched. A ReplayGain-compatible
player
+will dynamically adjust the volume of tagged files during playback.")
+ (license license:bsd-2)))
+
(define-public filteraudio
(let ((revision "1")
(commit "2fc669581e2a0ff87fba8de85861b49133306094"))