plasma5Packages.solid: refactor

This commit is contained in:
Weijia Wang 2023-04-20 18:57:16 +03:00
parent 1133eae76c
commit 4a2fb58f1a

View file

@ -1,5 +1,5 @@
{
mkDerivation,
mkDerivation, lib, stdenv,
bison, extra-cmake-modules, flex,
media-player-info, qtbase, qtdeclarative, qttools
}:
@ -7,8 +7,9 @@
mkDerivation {
pname = "solid";
patches = [ ./fix-search-path.patch ];
nativeBuildInputs = [ bison extra-cmake-modules flex media-player-info ];
nativeBuildInputs = [ bison extra-cmake-modules flex ]
++ lib.optionals stdenv.isLinux [ media-player-info ];
buildInputs = [ qtdeclarative qttools ];
propagatedBuildInputs = [ qtbase ];
propagatedUserEnvPkgs = [ media-player-info ];
propagatedUserEnvPkgs = lib.optionals stdenv.isLinux [ media-player-info ];
}