depot/pkgs/by-name/fo/fooyin/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

77 lines
1.5 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
cmake,
pkg-config,
alsa-lib,
ffmpeg,
kdePackages,
kdsingleapplication,
pipewire,
taglib,
libvgm,
libsndfile,
libarchive,
libopenmpt,
game-music-emu,
SDL2,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fooyin";
version = "0.8.1";
src = fetchFromGitHub {
owner = "ludouzi";
repo = "fooyin";
rev = "v" + finalAttrs.version;
hash = "sha256-pkzBuJkZs76m7I/9FPt5GxGa8v2CDNR8QAHaIAuKN4w=";
};
buildInputs = [
kdePackages.qcoro
kdePackages.qtbase
kdePackages.qtsvg
kdePackages.qtwayland
taglib
ffmpeg
kdsingleapplication
# output plugins
alsa-lib
pipewire
SDL2
# input plugins
libvgm
libsndfile
libarchive
libopenmpt
game-music-emu
];
nativeBuildInputs = [
cmake
pkg-config
kdePackages.qttools
kdePackages.wrapQtAppsHook
];
cmakeFlags = [
(lib.cmakeBool "BUILD_TESTING" finalAttrs.finalPackage.doCheck)
# we need INSTALL_FHS to be true as the various artifacts are otherwise just dumped in the root
# of $out and the fixupPhase cleans things up anyway
(lib.cmakeBool "INSTALL_FHS" true)
];
env.LANG = "C.UTF-8";
meta = {
description = "Customisable music player";
homepage = "https://www.fooyin.org/";
downloadPage = "https://github.com/fooyin/fooyin";
mainProgram = "fooyin";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ peterhoeg ];
platforms = lib.platforms.linux;
};
})