1 { lib, stdenv, fetchFromGitHub, fetchpatch }:
7 src = fetchFromGitHub {
10 rev = "c928eaf97aeec5732625491b64c882e08e314fee";
11 sha256 = "0wghqnsbypmr4xcrhb568bfjdnxzzp8qgnws3jslzmzf34dpk5ls";
15 # Upstream fix for -fno-common toolchains.
17 name = "fno-common.patch";
18 url = "https://github.com/MestreLion/wavegain/commit/ee5e0f9a0ce34c0cf2769ea6566685a54b938304.patch";
19 sha256 = "11yi0czdn5h5bsqp23cww6yn9lm60cij8i1pzfwcfhgyf6f8ym1n";
23 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
27 install -vD wavegain "$out/bin/wavegain"
31 broken = (stdenv.isLinux && stdenv.isAarch64);
32 description = "ReplayGain for wave files";
33 homepage = "https://github.com/MestreLion/wavegain";
34 license = lib.licenses.lgpl21;
35 platforms = lib.platforms.linux;
36 maintainers = [ lib.maintainers.robbinch ];
37 mainProgram = "wavegain";