diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-04-09 06:56:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 06:56:47 +0000 |
commit | 49b9f86991efba0880d0d737bec85da665bd4dd5 (patch) | |
tree | 31c1ac1c188b8fd17c1a217d5c389954492b5048 | |
parent | e160d4327caca711fb7286cce448ca2d341518da (diff) | |
parent | 0bd01ec0bf1916eff160c3467a3eb2069039ac3e (diff) |
Merge pull request #302724 from name-snrl/where-is-my-sddm-theme-fix-qt5
where-is-my-sddm-theme: fix qt5 variant and add qtsvg to qt6
-rw-r--r-- | pkgs/by-name/wh/where-is-my-sddm-theme/package.nix | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/pkgs/by-name/wh/where-is-my-sddm-theme/package.nix b/pkgs/by-name/wh/where-is-my-sddm-theme/package.nix index e15ab121a41f3..6026a107f70b1 100644 --- a/pkgs/by-name/wh/where-is-my-sddm-theme/package.nix +++ b/pkgs/by-name/wh/where-is-my-sddm-theme/package.nix @@ -45,26 +45,37 @@ stdenvNoCC.mkDerivation rec { propagatedUserEnvPkgs = [ ] ++ lib.optional (lib.elem "qt5" variants) [ libsForQt5.qtgraphicaleffects ] - ++ lib.optional (lib.elem "qt6" variants) [ qt6.qt5compat ]; + ++ lib.optional (lib.elem "qt6" variants) [ + qt6.qt5compat + qt6.qtsvg + ]; installPhase = '' mkdir -p $out/share/sddm/themes/ '' - + lib.optionalString (lib.elem "qt6" variants) '' - cp -r where_is_my_sddm_theme/ $out/share/sddm/themes/ - '' - + lib.optionalString (lib.elem "qt5" variants) '' - cp -r where_is_my_sddm_theme_qt5/ $out/share/sddm/themes/ - '' - + lib.optionalString (lib.isAttrs themeConfig) '' - ln -sf ${user-cfg} $out/share/sddm/themes/where_is_my_sddm_theme/theme.conf.user - ''; + + lib.optionalString (lib.elem "qt6" variants) ( + '' + cp -r where_is_my_sddm_theme/ $out/share/sddm/themes/ + '' + + lib.optionalString (lib.isAttrs themeConfig) '' + ln -sf ${user-cfg} $out/share/sddm/themes/where_is_my_sddm_theme/theme.conf.user + '' + ) + + lib.optionalString (lib.elem "qt5" variants) ( + '' + cp -r where_is_my_sddm_theme_qt5/ $out/share/sddm/themes/ + '' + + lib.optionalString (lib.isAttrs themeConfig) '' + ln -sf ${user-cfg} $out/share/sddm/themes/where_is_my_sddm_theme_qt5/theme.conf.user + '' + ); meta = with lib; { description = "The most minimalistic SDDM theme among all themes"; homepage = "https://github.com/stepanzubkov/where-is-my-sddm-theme"; license = licenses.mit; + platforms = platforms.linux; maintainers = with maintainers; [ name-snrl ]; }; } |