2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, audacious-plugins
|
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, qtbase
|
|
|
|
, wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "audacious";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-07-18 16:06:22 +00:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-/rME5HCkgf4rPEyhycs7I+wmJUDBLQ0ebCKl62JeBLM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-07-18 16:06:22 +00:00
|
|
|
qtbase
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk=false"
|
|
|
|
"-Dbuildstamp=NixOS"
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postInstall = lib.optionalString (audacious-plugins != null) ''
|
|
|
|
ln -s ${audacious-plugins}/lib/audacious $out/lib
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2022-08-12 12:06:08 +00:00
|
|
|
description = "A lightweight and versatile audio player";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://audacious-media-player.org/";
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ eelco ramkromberg ttuegel thiagokokada ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
license = with licenses; [
|
2022-08-12 12:06:08 +00:00
|
|
|
bsd2
|
|
|
|
bsd3 #https://github.com/audacious-media-player/audacious/blob/master/COPYING
|
|
|
|
gpl2
|
|
|
|
gpl3
|
|
|
|
lgpl2Plus #http://redmine.audacious-media-player.org/issues/46
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|