Skip to content

Commit

Permalink
cantata: pin to ffmpeg_6
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Nov 6, 2024
1 parent c9383f5 commit 2dc0730
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pkgs/by-name/ca/cantata/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
fetchFromGitHub,
cmake,
pkg-config,
qt6,
qt5,
perl,

# Cantata doesn't build with cdparanoia enabled so we disable that
Expand Down Expand Up @@ -100,7 +100,7 @@ let
{
names = [ "HTTP_STREAM_PLAYBACK" ];
enable = withHttpStream;
pkgs = [ qt6.qtmultimedia ];
pkgs = [ qt5.qtmultimedia ];
}
{
names = [ "LAME" ];
Expand Down Expand Up @@ -174,27 +174,28 @@ stdenv.mkDerivation rec {
'';

buildInputs = [
qt6.qtbase
qt6.qtsvg
qt5.qtbase
qt5.qtsvg
(perl.withPackages (ppkgs: with ppkgs; [ URI ]))
] ++ lib.flatten (builtins.catAttrs "pkgs" (builtins.filter (e: e.enable) options));

nativeBuildInputs = [
cmake
pkg-config
qt6.qttools
qt5.qttools
qt5.wrapQtAppsHook
];

cmakeFlags = lib.flatten (map (e: map (f: fstat e.enable f) e.names) options);

meta = with lib; {
meta = {
description = "Graphical client for MPD";
mainProgram = "cantata";
homepage = "https://github.com/cdrummond/cantata";
license = licenses.gpl3Only;
maintainers = with maintainers; [ peterhoeg ];
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ peterhoeg ];
# Technically, Cantata should run on Darwin/Windows so if someone wants to
# bother figuring that one out, be my guest.
platforms = platforms.linux;
platforms = lib.platforms.linux;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38405,4 +38405,8 @@ with pkgs;
dillo = callPackage ../by-name/di/dillo/package.nix {
fltk = fltk13;
};

cantata = callPackage ../by-name/ca/cantata/package.nix {
ffmpeg = ffmpeg_6;
};
}

0 comments on commit 2dc0730

Please sign in to comment.