2022-08-04 23:49:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, audacious-plugins
|
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, qtbase
|
|
|
|
, wrapQtAppsHook
|
2010-04-16 19:26:15 +00:00
|
|
|
}:
|
|
|
|
|
2022-08-04 23:49:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "audacious";
|
2023-05-03 12:24:06 +00:00
|
|
|
version = "4.3.1";
|
2012-02-26 22:47:28 +00:00
|
|
|
|
2010-04-16 19:26:15 +00:00
|
|
|
src = fetchurl {
|
2020-07-16 09:36:06 +00:00
|
|
|
url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
|
2023-05-03 12:24:06 +00:00
|
|
|
sha256 = "sha256-heniaEFQW1HjQu5yotBfGb74lPVnoCnrs/Pgwa20IEI=";
|
2010-04-16 19:26:15 +00:00
|
|
|
};
|
2012-02-26 22:47:28 +00:00
|
|
|
|
2022-08-04 23:49:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2016-08-05 08:28:04 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-07-16 09:36:06 +00:00
|
|
|
qtbase
|
|
|
|
];
|
2016-08-05 08:28:04 +00:00
|
|
|
|
2022-08-04 23:49:57 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk=false"
|
|
|
|
"-Dbuildstamp=NixOS"
|
|
|
|
];
|
2021-11-25 08:54:23 +00:00
|
|
|
|
2022-08-04 23:49:57 +00:00
|
|
|
postInstall = lib.optionalString (audacious-plugins != null) ''
|
|
|
|
ln -s ${audacious-plugins}/lib/audacious $out/lib
|
2016-08-05 08:28:04 +00:00
|
|
|
'';
|
2010-04-16 19:26:15 +00:00
|
|
|
|
2020-07-16 09:36:06 +00:00
|
|
|
meta = with lib; {
|
2022-08-04 23:49:57 +00:00
|
|
|
description = "A lightweight and versatile audio player";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://audacious-media-player.org/";
|
2022-08-04 23:49:57 +00:00
|
|
|
maintainers = with maintainers; [ eelco ramkromberg ttuegel thiagokokada ];
|
2016-08-05 08:28:04 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
license = with licenses; [
|
2022-08-04 23:49:57 +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
|
2016-08-05 08:28:04 +00:00
|
|
|
];
|
2010-04-16 19:26:15 +00:00
|
|
|
};
|
|
|
|
}
|