2022-01-03 16:56:52 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "wavegain";
|
|
|
|
version = "1.3.1";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MestreLion";
|
|
|
|
repo = "wavegain";
|
|
|
|
rev = "c928eaf97aeec5732625491b64c882e08e314fee";
|
|
|
|
sha256 = "0wghqnsbypmr4xcrhb568bfjdnxzzp8qgnws3jslzmzf34dpk5ls";
|
|
|
|
};
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
patches = [
|
|
|
|
# Upstream fix for -fno-common toolchains.
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://github.com/MestreLion/wavegain/commit/ee5e0f9a0ce34c0cf2769ea6566685a54b938304.patch";
|
|
|
|
sha256 = "11yi0czdn5h5bsqp23cww6yn9lm60cij8i1pzfwcfhgyf6f8ym1n";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
strip -s wavegain
|
|
|
|
install -vD wavegain "$out/bin/wavegain"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "ReplayGain for wave files";
|
|
|
|
homepage = "https://github.com/MestreLion/wavegain";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.robbinch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|