mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:23:02 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
69 lines
2.2 KiB
Nix
69 lines
2.2 KiB
Nix
{
|
|
mkDerivation, lib, fetchurl, fetchpatch,
|
|
gettext, pkg-config,
|
|
qtbase,
|
|
alsaLib, curl, faad2, ffmpeg, flac, fluidsynth, gdk-pixbuf, lame, libbs2b,
|
|
libcddb, libcdio, libcdio-paranoia, libcue, libjack2, libmad, libmms, libmodplug,
|
|
libmowgli, libnotify, libogg, libpulseaudio, libsamplerate, libsidplayfp,
|
|
libsndfile, libvorbis, libxml2, lirc, mpg123, neon, qtmultimedia, soxr,
|
|
wavpack, openmpt123
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "audacious";
|
|
version = "4.0.5";
|
|
|
|
src = fetchurl {
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
|
|
sha256 = "028zjgz0p7ys15lk2a30m5zcv9xrx3ga50wjsh4m4zxilgkakbji";
|
|
};
|
|
pluginsSrc = fetchurl {
|
|
url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
|
|
sha256 = "0ny5w1agr9jaz5w3wyyxf1ygmzmd1sivaf97lcm4z4w6529520lz";
|
|
};
|
|
|
|
nativeBuildInputs = [ gettext pkg-config ];
|
|
|
|
buildInputs = [
|
|
# Core dependencies
|
|
qtbase
|
|
|
|
# Plugin dependencies
|
|
alsaLib curl faad2 ffmpeg flac fluidsynth gdk-pixbuf lame libbs2b libcddb
|
|
libcdio libcdio-paranoia libcue libjack2 libmad libmms libmodplug libmowgli
|
|
libnotify libogg libpulseaudio libsamplerate libsidplayfp libsndfile
|
|
libvorbis libxml2 lirc mpg123 neon qtmultimedia soxr wavpack
|
|
openmpt123
|
|
];
|
|
|
|
# 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" ''
|
|
# First build audacious.
|
|
(
|
|
source $stdenv/setup
|
|
genericBuild
|
|
)
|
|
# Then build the plugins.
|
|
(
|
|
nativeBuildInputs="$out $nativeBuildInputs" # to find audacious
|
|
source $stdenv/setup
|
|
rm -rfv audacious-*
|
|
src=$pluginsSrc
|
|
genericBuild
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Audio player";
|
|
homepage = "https://audacious-media-player.org/";
|
|
maintainers = with maintainers; [ eelco ramkromberg 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
|
|
];
|
|
};
|
|
}
|