1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #324012 from DaniD3v/sddm-astronaut

This commit is contained in:
Sandro 2024-07-10 16:24:06 +02:00 committed by GitHub
commit 47d56528ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 40 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -27579,6 +27579,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 { };