@@ -0,0 +1,31 @@
1+{ stdenv, fetchFromBitbucket, opusfile, libopus, libogg, openssl, deadbeef }:
2+
3+stdenv.mkDerivation rec {
4+ name = "deadbeef-opus-plugin-${version}";
5+ version = "0.8";
6+
7+ src = fetchFromBitbucket {
8+ owner = "Lithopsian";
9+ repo = "deadbeef-opus";
10+ rev = "v${version}";
11+ sha256 = "057rgsw4563gs63k05s7zsdc0n4djxwlbyqabf7c88f23z35ryyi";
12+ };
13+
14+ makeFlags = [
15+ "PREFIX=$(out)"
16+ ];
17+
18+ NIX_CFLAGS_COMPILE = [
19+ "-I${opusfile}/include/opus"
20+ ];
21+
22+ buildInputs = [ deadbeef opusfile libopus libogg openssl ];
23+
24+ meta = with stdenv.lib; {
25+ description = "Ogg Opus decoder plugin for the DeaDBeeF music player";
26+ homepage = https://bitbucket.org/Lithopsian/deadbeef-opus;
27+ license = licenses.gpl2; # There are three files, each licensed under different license: zlib, gpl2Plus and lgpl2
28+ maintainers = [ maintainers.jtojnar ];
29+ platforms = platforms.linux;
30+ };
31+}