From 4def93b9d45fba9ba417be602e2c7525ba075fe7 Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Tue, 17 Jun 2025 12:39:05 +0800 Subject: [PATCH] gnu: Add ghc-hcodecs. * gnu/packages/haskell-xyz.scm (ghc-hcodecs): New variable. Change-Id: I3b03f9eb430e076f1055f17e28ae161925795c56 Signed-off-by: jgart --- gnu/packages/haskell-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index dc564e7a581..896271bddec 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -5218,6 +5218,29 @@ template-haskell abstract syntax.") Vim.") (license license:bsd-3))) +(define-public ghc-hcodecs + (package + (name "ghc-hcodecs") + (version "0.5.2") + (source (origin + (method url-fetch) + (uri (hackage-uri "HCodecs" version)) + (sha256 + (base32 + "0gbspig721viwncsfg9m4qc9jbl9rz93ra74d5b1zw9pw7rhy5ji")))) + (build-system haskell-build-system) + (inputs (list ghc-fail + ghc-random + ghc-semigroups)) + (native-inputs (list ghc-quickcheck)) + (home-page "https://github.com/Mokosha/HCodecs") + (synopsis "Read, write and manipulate MIDI, WAVE and SoundFont2 multimedia files") + (description "This library provides functions to read, write and manipulate MIDI, WAVE +and SoundFont2 multimedia files. It is written entirely in Haskell (without any FFI). +It uses efficient parsing and building combinators for binary data stored in ByteStrings +(based on the one in binary package).") + (license license:bsd-3))) + (define-public ghc-hex (package (name "ghc-hex")