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";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "4.3.1";
|
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";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-heniaEFQW1HjQu5yotBfGb74lPVnoCnrs/Pgwa20IEI=";
|
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
|
2024-06-05 15:53:02 +00:00
|
|
|
ln -s ${audacious-plugins}/share/audacious/Skins $out/share/audacious/
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|