1{ lib, stdenv, fetchFromGitHub, gettext, autoreconfHook, libiconv }:
2
3stdenv.mkDerivation rec {
4 pname = "wavpack";
5 version = "5.5.0";
6
7 enableParallelBuilding = true;
8
9 nativeBuildInputs = [ autoreconfHook ];
10 buildInputs = lib.optional stdenv.isDarwin libiconv;
11
12 # autogen.sh:9
13 preAutoreconf = "cp ${gettext}/share/gettext/config.rpath .";
14
15 src = fetchFromGitHub {
16 owner = "dbry";
17 repo = "WavPack";
18 rev = version;
19 hash = "sha256-4QDtLywu0PT+YsMV26M74bL2P7p4s1tk8ZBQtQcubaU=";
20 };
21
22 meta = with lib; {
23 description = "Hybrid audio compression format";
24 homepage = "https://www.wavpack.com/";
25 changelog = "https://github.com/dbry/WavPack/releases/tag/${version}";
26 license = licenses.bsd3;
27 platforms = platforms.unix;
28 maintainers = with maintainers; [ codyopel ];
29 };
30}