Unverified Commit d09dda80 authored by Aliaksandr's avatar Aliaksandr
Browse files

sddm-astronaut: refactor

- Drop rec
- Move local let variables to global let
- Inline homepage URL
parent 740e83df
Loading
Loading
Loading
Loading
+21 −25
Original line number Diff line number Diff line
@@ -7,7 +7,12 @@
  themeConfig ? null,
  embeddedTheme ? "astronaut",
}:
stdenvNoCC.mkDerivation rec {
let
  configFile = (formats.ini { }).generate "" { General = themeConfig; };
  basePath = "$out/share/sddm/themes/sddm-astronaut-theme";
  sedString = "ConfigFile=Themes/";
in
stdenvNoCC.mkDerivation {
  pname = "sddm-astronaut";
  version = "1.0-unstable-2025-01-05";

@@ -26,15 +31,7 @@ stdenvNoCC.mkDerivation rec {
    qtvirtualkeyboard
  ];

  installPhase =
    let
      iniFormat = formats.ini { };
      configFile = iniFormat.generate "" { General = themeConfig; };

      basePath = "$out/share/sddm/themes/sddm-astronaut-theme";
      sedString = "ConfigFile=Themes/";
    in
    ''
  installPhase = ''
    mkdir -p ${basePath}
    cp -r $src/* ${basePath}
  ''
@@ -51,9 +48,8 @@ stdenvNoCC.mkDerivation rec {

  meta = {
    description = "Modern looking qt6 sddm theme";
    homepage = "https://github.com/${src.owner}/${src.repo}";
    homepage = "https://github.com/Keyitdev/sddm-astronaut-theme";
    license = lib.licenses.gpl3;

    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [
      danid3v