Change:
Ripped CD The original issue: The fix linked in the issue: So the fix seems to be either downgrade to 1.2.4 or apply the patch listed in the arch repo. Please run and paste the result.
It's hard to imagine how this specific error could be related to an encoding issue... both of your links point to the same place, do you have a link to the fix you're talking about?
Ah, I found the one used in the Arch package. I'm not presently able to test the fix myself, however; if I give you an amended Nixpkgs branch and instructions to try it, would you be able to see if it works correctly?
I applied the downgrade and it works. If you can give me the patch I can test it as well.
Thanks; please try (patch: ). Sadly it seems like neither cdrdao nor whipper get very much upstream maintainer attention these days...
Gave it a try with the following in my home-manager config: I was able to successfully rip a CD so the patch seems to be effective. :partying_face:
Thanks for testing; opened

Discussion:
description = "A CD ripper aiming for accuracy over speed"; maintainers = with maintainers; [ emily ]; license = licenses.gpl3Plus; <del> platforms = platforms.linux; </del> <ins> platforms = platforms.unix; </ins> }; }

<del> {lib, stdenv, fetchurl, libvorbis, libmad, pkg-config, libao}: </del> <ins> { lib, stdenv, fetchurl, fetchpatch, pkg-config, libiconv, libvorbis, libmad, libao, CoreServices, IOKit, }: </ins> <del> stdenv.mkDerivation rec { </del> <ins> stdenv.mkDerivation (finalAttrs: { </ins> pname = "cdrdao"; version = "1.2.5"; src = fetchurl { <del> url = "mirror://sourceforge/cdrdao/cdrdao-${version}.tar.bz2"; </del> <ins> url = "mirror://sourceforge/cdrdao/cdrdao-${finalAttrs.version}.tar.bz2"; </ins> hash = "sha256-0ZtnyFPF26JAavqrbNeI53817r5jTKxGeVKEd8e+AbY="; }; makeFlags = [ "RM=rm" "LN=ln" "MV=mv" ]; <del> nativeBuildInputs = [ pkg-config ]; buildInputs = [ libvorbis libmad libao ]; </del> <ins> nativeBuildInputs = [ pkg-config ]; buildInputs = [ libiconv libvorbis libmad libao ] ++ lib.optionals stdenv.isDarwin [ CoreServices IOKit ]; </ins> hardeningDisable = [ "format" ]; <ins> patches = [ # Fix build on macOS SDK < 12 # https://github.com/cdrdao/cdrdao/pull/19 (fetchpatch { url = "https://github.com/cdrdao/cdrdao/commit/105d72a61f510e3c47626476f9bbc9516f824ede.patch"; hash = "sha256-NVIw59CSrc/HcslhfbYQNK/qSmD4QbfuV8hWYhWelX4="; }) # Fix undefined behaviour caused by uninitialized variable # https://github.com/cdrdao/cdrdao/pull/21 (fetchpatch { url = "https://github.com/cdrdao/cdrdao/commit/251a40ab42305c412674c7c2d391374d91e91c95.patch"; hash = "sha256-+nGlWw5rgc5Ns2l+6fQ4Hp2LbhO4R/I95h9WGIh/Ebw="; }) ]; </ins> # we have glibc/include/linux as a symlink to the kernel headers, # and the magic '..' points to kernelheaders, and not back to the glibc/include postPatch = ''

# Needed on gcc >= 6. env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; <del> meta = with lib; { </del> <ins> meta = { </ins> description = "A tool for recording audio or data CD-Rs in disk-at-once (DAO) mode"; homepage = "https://cdrdao.sourceforge.net/"; <del> platforms = platforms.linux; license = licenses.gpl2; </del> <ins> platforms = lib.platforms.unix; license = lib.licenses.gpl2; </ins> }; <del> } </del> <ins> }) </ins>

cdpr = callPackage ../tools/networking/cdpr { }; <del> cdrdao = callPackage ../tools/cd-dvd/cdrdao { }; </del> <ins> cdrdao = callPackage ../tools/cd-dvd/cdrdao { inherit (darwin.apple_sdk.frameworks) CoreServices IOKit; }; </ins> cdrkit = callPackage ../tools/cd-dvd/cdrkit { };