mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
b8dc7a5e88
Separate the derivation in `audacious` and `audacious-plugins`. Since one derivation depends on the other, we first build `audacious` without the `audacious-plugins`, them we build `audacious-plugins` and finally we build the final version of `audacious`. Also, add myself as maintainer.
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, audacious-plugins
|
|
, fetchurl
|
|
, gettext
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, qtbase
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "audacious";
|
|
version = "4.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
|
|
sha256 = "sha256-/rME5HCkgf4rPEyhycs7I+wmJUDBLQ0ebCKl62JeBLM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dgtk=false"
|
|
"-Dbuildstamp=NixOS"
|
|
];
|
|
|
|
postInstall = lib.optionalString (audacious-plugins != null) ''
|
|
ln -s ${audacious-plugins}/lib/audacious $out/lib
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A lightweight and versatile audio player";
|
|
homepage = "https://audacious-media-player.org/";
|
|
maintainers = with maintainers; [ eelco ramkromberg ttuegel thiagokokada ];
|
|
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
|
|
];
|
|
};
|
|
}
|