mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
b926e6ece9
treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, alsa-lib
|
|
, ffmpeg
|
|
, kdePackages
|
|
, kdsingleapplication
|
|
, pipewire
|
|
, taglib
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "fooyin";
|
|
version = "0.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ludouzi";
|
|
repo = "fooyin";
|
|
rev = "v" + finalAttrs.version;
|
|
hash = "sha256-h8unOzDSQ9ME6nbfLxau1EctJeNH8P2VG0IBQoqhwGs=";
|
|
};
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
ffmpeg
|
|
kdsingleapplication
|
|
pipewire
|
|
kdePackages.qcoro
|
|
kdePackages.qtbase
|
|
kdePackages.qtsvg
|
|
taglib
|
|
];
|
|
|
|
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 = with lib; {
|
|
description = "Customisable music player";
|
|
mainProgram = "fooyin";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.all;
|
|
};
|
|
})
|