Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ 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}/${src.repo}";
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ danid3v ];
|
|
};
|
|
}
|