Skip to content

Commit

Permalink
deadbeefPlugins.opus: init at 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Feb 24, 2018
1 parent 114a8f1 commit 2cb88c5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
31 changes: 31 additions & 0 deletions pkgs/applications/audio/deadbeef/plugins/opus.nix
@@ -0,0 +1,31 @@
{ stdenv, fetchFromBitbucket, opusfile, libopus, libogg, openssl, deadbeef }:

stdenv.mkDerivation rec {
name = "deadbeef-opus-plugin-${version}";
version = "0.8";

src = fetchFromBitbucket {
owner = "Lithopsian";
repo = "deadbeef-opus";
rev = "v${version}";
sha256 = "057rgsw4563gs63k05s7zsdc0n4djxwlbyqabf7c88f23z35ryyi";
};

makeFlags = [
"PREFIX=$(out)"
];

NIX_CFLAGS_COMPILE = [
"-I${opusfile}/include/opus"
];

buildInputs = [ deadbeef opusfile libopus libogg openssl ];

meta = with stdenv.lib; {
description = "Ogg Opus decoder plugin for the DeaDBeeF music player";
homepage = https://bitbucket.org/Lithopsian/deadbeef-opus;
license = licenses.gpl2; # There are three files, each licensed under different license: zlib, gpl2Plus and lgpl2
maintainers = [ maintainers.jtojnar ];
platforms = platforms.linux;
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Expand Up @@ -49,6 +49,7 @@ mapAliases (rec {
cupsBjnp = cups-bjnp; # added 2016-01-02
cups_filters = cups-filters; # added 2016-08
cv = progress; # added 2015-09-06
deadbeef-mpris2-plugin = deadbeefPlugins.mpris2; # added 2018-02-23
debian_devscripts = debian-devscripts; # added 2016-03-23
digikam5 = digikam; # added 2017-02-18
double_conversion = double-conversion; # 2017-11-22
Expand Down
5 changes: 4 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -14872,7 +14872,10 @@ with pkgs;
pulseSupport = config.pulseaudio or true;
};

deadbeef-mpris2-plugin = callPackage ../applications/audio/deadbeef/plugins/mpris2.nix { };
deadbeefPlugins = {
mpris2 = callPackage ../applications/audio/deadbeef/plugins/mpris2.nix { };
opus = callPackage ../applications/audio/deadbeef/plugins/opus.nix { };
};

deadbeef-with-plugins = callPackage ../applications/audio/deadbeef/wrapper.nix {
plugins = [];
Expand Down

0 comments on commit 2cb88c5

Please sign in to comment.