Skip to content

Commit

Permalink
sddm: propagate qtbase input
Browse files Browse the repository at this point in the history
  • Loading branch information
ttuegel committed Mar 22, 2017
1 parent 7aee677 commit 3de6ccd
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions pkgs/applications/display-managers/sddm/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, makeQtWrapper, fetchFromGitHub, fetchpatch
{ stdenv, lib, makeQtWrapper, fetchFromGitHub, fetchpatch
, cmake, extra-cmake-modules, pkgconfig, libxcb, libpthreadstubs, lndir
, libXdmcp, libXau, qtbase, qtdeclarative, qttools, pam, systemd
, themes
Expand Down Expand Up @@ -28,10 +28,13 @@ let
nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig qttools ];

buildInputs = [
libxcb libpthreadstubs libXdmcp libXau qtbase pam systemd
libxcb libpthreadstubs libXdmcp libXau pam systemd
qtbase qtdeclarative
];

propagatedBuildInputs = [ qtdeclarative ];
propagatedUserEnvPkgs = builtins.map lib.getBin [
qtbase qtdeclarative
];

cmakeFlags = [
"-DCONFIG_FILE=/etc/sddm.conf"
Expand Down Expand Up @@ -80,6 +83,21 @@ stdenv.mkDerivation {
installPhase = ''
runHook preInstall
propagated=
for i in $unwrapped $themes; do
findInputs $i propagated propagated-user-env-packages
if [ -z "$crossConfig" ]; then
findInputs $i propagated propagated-native-build-inputs
else
findInputs $i propagated propagated-build-inputs
fi
done
for pkg in $propagated; do
addToSearchPath RUNTIME_XDG_DATA_DIRS "$pkg/share"
addToSearchPath RUNTIME_XDG_CONFIG_DIRS "$pkg/etc/xdg"
done
makeQtWrapper "$unwrapped/bin/sddm" "$out/bin/sddm"
mkdir -p "$out/share/sddm"
Expand Down

0 comments on commit 3de6ccd

Please sign in to comment.