@@ -1,5 +1,7 @@
1−{ stdenv, fetchpatch, makeWrapper, fetchFromGitHub, cmake, pkgconfig, libxcb, libpthreadstubs
2−, libXdmcp, libXau, qt5, pam, systemd }:
1+{ stdenv, fetchpatch, fetchFromGitHub, cmake, pkgconfig, libxcb
2+, libpthreadstubs, libXdmcp, libXau, qtbase, qtdeclarative, qttools, pam
3+, systemd
4+}:
35
46let
57 version = "0.11.0";
@@ -14,9 +16,9 @@ stdenv.mkDerivation rec {
1416 sha256 = "1s1gm0xvgwzrpxgni3ngdj8phzg21gkk1jyiv2l2i5ayl0jdm7ig";
1517 };
1618
17− nativeBuildInputs = [ cmake pkgconfig qt5.tools makeWrapper ];
19+ nativeBuildInputs = [ cmake pkgconfig qttools ];
1820
19− buildInputs = [ libxcb libpthreadstubs libXdmcp libXau qt5.base pam systemd ];
21+ buildInputs = [ libxcb libpthreadstubs libXdmcp libXau qtbase qtdeclarative pam systemd ];
2022
2123 patches = [ (fetchpatch {
2224 url = "https://github.com/sddm/sddm/commit/9bc21ee7da5de6b2531d47d1af4d7b0a169990b9.patch";
@@ -32,8 +34,8 @@ stdenv.mkDerivation rec {
3234 '';
3335
3436 postInstall = ''
35− wrapProgram $out/bin/sddm-greeter \
36− --set QML2_IMPORT_PATH "${qt5.declarative}/lib/qt5/qml/"
37+ wrapQtProgram $out/bin/sddm
38+ wrapQtProgram $out/bin/sddm-greeter
3739 '';
3840
3941 enableParallelBuilding = true;