From 8fb6f551e9719b042c84f23e999f7515a22fd2c2 Mon Sep 17 00:00:00 2001 From: DaniD3v Date: Tue, 2 Jul 2024 13:11:32 +0200 Subject: [PATCH] sddm-astronaut: init at 1.0 --- pkgs/data/themes/sddm-astronaut/default.nix | 38 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/data/themes/sddm-astronaut/default.nix diff --git a/pkgs/data/themes/sddm-astronaut/default.nix b/pkgs/data/themes/sddm-astronaut/default.nix new file mode 100644 index 000000000000..ef8071f1e858 --- /dev/null +++ b/pkgs/data/themes/sddm-astronaut/default.nix @@ -0,0 +1,38 @@ +{ pkgs, lib, stdenvNoCC, themeConfig ? null }: +stdenvNoCC.mkDerivation rec { + pname = "sddm-astronaut"; + version = "1.0"; + + src = pkgs.fetchFromGitHub { + owner = "Keyitdev"; + repo = "sddm-astronaut-theme"; + rev = "48ea0a792711ac0c58cc74f7a03e2e7ba3dc2ac0"; + hash = "sha256-kXovz813BS+Mtbk6+nNNdnluwp/7V2e3KJLuIfiWRD0="; + }; + + dontWrapQtApps = true; + propagatedBuildInputs = with pkgs.kdePackages; [ qt5compat qtsvg ]; + + installPhase = + let + iniFormat = pkgs.formats.ini { }; + configFile = iniFormat.generate "" { General = themeConfig; }; + + basePath = "$out/share/sddm/themes/sddm-astronaut-theme"; + in + '' + mkdir -p ${basePath} + cp -r $src/* ${basePath} + '' + lib.optionalString (themeConfig != null) '' + ln -sf ${configFile} ${basePath}/theme.conf.user + ''; + + meta = { + description = "Modern looking qt6 sddm theme"; + homepage = "https://github.com/${src.owner}/${pname}"; + license = lib.licenses.gpl3; + + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ danid3v ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f4fbdcc4de8b..496a42dbf1e1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27627,6 +27627,8 @@ with pkgs; schedtool = callPackage ../os-specific/linux/schedtool { }; + sddm-astronaut = qt6Packages.callPackage ../data/themes/sddm-astronaut { }; + sddm-chili-theme = libsForQt5.callPackage ../data/themes/chili-sddm { }; sddm-sugar-dark = libsForQt5.callPackage ../data/themes/sddm-sugar-dark { };