mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-29 16:40:18 +02:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
71 lines
1.8 KiB
Nix
71 lines
1.8 KiB
Nix
{ cmake
|
|
, fetchFromGitLab
|
|
, lib
|
|
, libnotify
|
|
, mkDerivation
|
|
, pkg-config
|
|
, qtbase
|
|
, qtdeclarative
|
|
, qtgraphicaleffects
|
|
, qtquickcontrols2
|
|
, qttools
|
|
, qtwebengine
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "MellowPlayer";
|
|
version = "3.6.7";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "ColinDuquesnoy";
|
|
repo = "MellowPlayer";
|
|
rev = version;
|
|
sha256 = "1p0z8hkbxaxrqjmknjwxb0mpf3xdssik3m5cwrsv1881k1x2x5qs";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
libnotify
|
|
qtbase
|
|
qtdeclarative
|
|
qtgraphicaleffects
|
|
qtquickcontrols2
|
|
qttools
|
|
qtwebengine
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
cmakeFlags = [ "-DBUILD_TESTS=ON" ];
|
|
|
|
preCheck = ''
|
|
# Running the tests requires a location at the home directory for logging.
|
|
export HOME="$NIX_BUILD_TOP/home"
|
|
mkdir -p "$HOME/.local/share/MellowPlayer.Tests/MellowPlayer.Tests/Logs"
|
|
|
|
# Without this, the tests fail because they cannot create the QT Window
|
|
export QT_QPA_PLATFORM=offscreen
|
|
''
|
|
# TODO: The tests are failing because it can't locate QT plugins. Is there a better way to do this?
|
|
+ (builtins.concatStringsSep "\n" (lib.lists.flatten (builtins.map
|
|
(pkg: [
|
|
(lib.optionalString (pkg ? qtPluginPrefix) ''
|
|
export QT_PLUGIN_PATH="${pkg}/${pkg.qtPluginPrefix}"''${QT_PLUGIN_PATH:+':'}$QT_PLUGIN_PATH
|
|
'')
|
|
|
|
(lib.optionalString (pkg ? qtQmlPrefix) ''
|
|
export QML2_IMPORT_PATH="${pkg}/${pkg.qtQmlPrefix}"''${QML2_IMPORT_PATH:+':'}$QML2_IMPORT_PATH
|
|
'')
|
|
]) buildInputs)));
|
|
|
|
meta = with lib; {
|
|
inherit (qtbase.meta) platforms;
|
|
|
|
description = "Cloud music integration for your desktop";
|
|
homepage = "https://gitlab.com/ColinDuquesnoy/MellowPlayer";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
};
|
|
}
|