@@ -0,0 +1,31 @@
1+{ lib, stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "libfreeaptx";
5+ version = "0.1.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "iamthehorker";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "sha256-eEUhOrKqb2hHWanY+knpY9FBEnjkkFTB+x6BZgMBpbo=";
12+ };
13+
14+ makeFlags = [
15+ "PREFIX=${placeholder "out"}"
16+ # disable static builds
17+ "ANAME="
18+ "AOBJECTS="
19+ "STATIC_UTILITIES="
20+ ];
21+
22+ enableParallelBuilding = true;
23+
24+ meta = with lib; {
25+ description = "Free Implementation of Audio Processing Technology codec (aptX)";
26+ license = licenses.lgpl21Plus;
27+ homepage = "https://github.com/iamthehorker/libfreeaptx";
28+ platforms = platforms.linux;
29+ maintainers = with maintainers; [ kranzes ];
30+ };
31+}