sbomnix: 1.7.0 -> 1.7.1
[NixPkgs.git] / pkgs / by-name / wa / wavegain / package.nix
blob355a80166ed9f232852c6cee3af77a02b85d7829
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6 }:
8 stdenv.mkDerivation {
9   pname = "wavegain";
10   version = "1.3.1";
12   src = fetchFromGitHub {
13     owner = "MestreLion";
14     repo = "wavegain";
15     rev = "c928eaf97aeec5732625491b64c882e08e314fee";
16     sha256 = "0wghqnsbypmr4xcrhb568bfjdnxzzp8qgnws3jslzmzf34dpk5ls";
17   };
19   patches = [
20     # Upstream fix for -fno-common toolchains.
21     (fetchpatch {
22       name = "fno-common.patch";
23       url = "https://github.com/MestreLion/wavegain/commit/ee5e0f9a0ce34c0cf2769ea6566685a54b938304.patch";
24       sha256 = "11yi0czdn5h5bsqp23cww6yn9lm60cij8i1pzfwcfhgyf6f8ym1n";
25     })
26   ];
28   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
30   installPhase = ''
31     strip -s wavegain
32     install -vD wavegain "$out/bin/wavegain"
33   '';
35   meta = {
36     broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
37     description = "ReplayGain for wave files";
38     homepage = "https://github.com/MestreLion/wavegain";
39     license = lib.licenses.lgpl21;
40     platforms = lib.platforms.linux;
41     maintainers = [ lib.maintainers.robbinch ];
42     mainProgram = "wavegain";
43   };