1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/applications/audio/audacious/qt-5.nix

82 lines
2.4 KiB
Nix
Raw Normal View History

2016-12-18 21:55:57 +00:00
{
2017-05-17 20:26:11 +01:00
mkDerivation, lib, fetchurl,
gettext, pkgconfig,
2016-12-18 21:55:57 +00:00
qtbase,
alsaLib, curl, faad2, ffmpeg, flac, fluidsynth, gdk_pixbuf, lame, libbs2b,
2017-11-01 21:43:38 +00:00
libcddb, libcdio082, libcue, libjack2, libmad, libmms, libmodplug,
2016-12-18 21:55:57 +00:00
libmowgli, libnotify, libogg, libpulseaudio, libsamplerate, libsidplayfp,
libsndfile, libvorbis, libxml2, lirc, mpg123, neon, qtmultimedia, soxr,
wavpack
}:
let
version = "3.8.2";
2016-12-18 21:55:57 +00:00
sources = {
"audacious-${version}" = fetchurl {
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
sha256 = "14xyvmxdax0aj1gqcz8z23cjcavsysyh6b3lkiczkv4vrqf4gwdx";
2016-12-18 21:55:57 +00:00
};
"audacious-plugins-${version}" = fetchurl {
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
sha256 = "1m7xln93zc4qvb1fi83icyd5x2r6azqlvs5nigjz8az3l2kzrknp";
2016-12-18 21:55:57 +00:00
};
};
in
2017-05-17 20:26:11 +01:00
mkDerivation {
2016-12-18 21:55:57 +00:00
inherit version;
name = "audacious-qt5-${version}";
2016-12-18 21:55:57 +00:00
sourceFiles = lib.attrValues sources;
sourceRoots = lib.attrNames sources;
2017-05-17 20:26:11 +01:00
nativeBuildInputs = [ gettext pkgconfig ];
2016-12-18 21:55:57 +00:00
buildInputs = [
# Core dependencies
qtbase
# Plugin dependencies
alsaLib curl faad2 ffmpeg flac fluidsynth gdk_pixbuf lame libbs2b libcddb
2017-11-01 21:43:38 +00:00
libcdio082 libcue libjack2 libmad libmms libmodplug libmowgli
2016-12-18 21:55:57 +00:00
libnotify libogg libpulseaudio libsamplerate libsidplayfp libsndfile
libvorbis libxml2 lirc mpg123 neon qtmultimedia soxr wavpack
];
configureFlags = [ "--enable-qt" "--disable-gtk" ];
# Here we build both audacious and audacious-plugins in one
# derivations, since they really expect to be in the same prefix.
# This is slighly tricky.
builder = builtins.toFile "builder.sh" ''
sourceFiles=( $sourceFiles )
sourceRoots=( $sourceRoots )
for (( i=0 ; i < ''${#sourceFiles[*]} ; i++ )); do
(
src=''${sourceFiles[$i]}
sourceRoot=''${sourceRoots[$i]}
source $stdenv/setup
genericBuild
)
if [ $i == 0 ]; then
nativeBuildInputs="$out $nativeBuildInputs"
fi
done
'';
2017-05-17 20:26:11 +01:00
meta = with lib; {
2016-12-18 21:55:57 +00:00
description = "Audio player";
homepage = http://audacious-media-player.org/;
maintainers = with maintainers; [ ttuegel ];
platforms = with platforms; linux;
license = with licenses; [
bsd2 bsd3 #https://github.com/audacious-media-player/audacious/blob/master/COPYING
gpl2 gpl3 lgpl2Plus #http://redmine.audacious-media-player.org/issues/46
];
};
}