anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / audio / audacious / default.nix
blobdeed9e3684adc81067a0f3be6485c5483875dacb
1 { lib
2 , stdenv
3 , audacious-plugins
4 , fetchFromGitHub
5 , meson
6 , ninja
7 , pkg-config
8 , qtbase
9 , qtsvg
10 , qtwayland
11 , wrapQtAppsHook
14 stdenv.mkDerivation rec {
15   pname = "audacious";
16   version = "4.4.2";
18   src = fetchFromGitHub {
19     owner = "audacious-media-player";
20     repo = "audacious";
21     rev = "${pname}-${version}";
22     hash = "sha256-Vh39uY15Pj2TbPk8gU55YykhFf5ytSUxN2gJ0VlC3tQ=";
23   };
25   nativeBuildInputs = [
26     meson
27     ninja
28     pkg-config
29     wrapQtAppsHook
30   ];
32   buildInputs = [
33     qtbase
34     qtsvg
35     qtwayland
36   ];
38   mesonFlags = [
39     "-Dgtk=false"
40     "-Dbuildstamp=NixOS"
41   ];
43   postInstall = lib.optionalString (audacious-plugins != null) ''
44     ln -s ${audacious-plugins}/lib/audacious $out/lib
45     ln -s ${audacious-plugins}/share/audacious/Skins $out/share/audacious/
46   '';
48   meta = {
49     description = "Lightweight and versatile audio player";
50     homepage = "https://audacious-media-player.org";
51     downloadPage = "https://github.com/audacious-media-player/audacious";
52     mainProgram = "audacious";
53     maintainers = with lib.maintainers; [ ramkromberg ttuegel thiagokokada ];
54     platforms = lib.platforms.linux;
55     license = with lib.licenses; [
56       bsd2
57       bsd3 #https://github.com/audacious-media-player/audacious/blob/master/COPYING
58       gpl2
59       gpl3
60       lgpl2Plus #http://redmine.audacious-media-player.org/issues/46
61     ];
62   };