biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / wavegain / default.nix
blob93dd7bf6fb23584cfc13206406f2b997557a8ea1
1 { lib, stdenv, fetchFromGitHub, fetchpatch }:
3 stdenv.mkDerivation {
4   pname = "wavegain";
5   version = "1.3.1";
7   src = fetchFromGitHub {
8     owner = "MestreLion";
9     repo = "wavegain";
10     rev = "c928eaf97aeec5732625491b64c882e08e314fee";
11     sha256 = "0wghqnsbypmr4xcrhb568bfjdnxzzp8qgnws3jslzmzf34dpk5ls";
12   };
14   patches = [
15     # Upstream fix for -fno-common toolchains.
16     (fetchpatch {
17       name = "fno-common.patch";
18       url = "https://github.com/MestreLion/wavegain/commit/ee5e0f9a0ce34c0cf2769ea6566685a54b938304.patch";
19       sha256 = "11yi0czdn5h5bsqp23cww6yn9lm60cij8i1pzfwcfhgyf6f8ym1n";
20     })
21   ];
23   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
25   installPhase = ''
26     strip -s wavegain
27     install -vD wavegain "$out/bin/wavegain"
28   '';
30   meta = {
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";
38   };