sddm-theme-utah: init at 1.0

This commit is contained in:
FliegendeWurst 2023-11-04 21:56:10 +01:00
parent 7cb0a0c27f
commit 41e943d82a
2 changed files with 28 additions and 0 deletions

View File

@ -27,6 +27,7 @@ rec {
ripgrep-all = pkgs.callPackage ./pkgs/ripgrep-all {
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
};
sddm-theme-utah = pkgs.callPackage ./pkgs/sddm-theme-utah { };
thumbs = pkgs.callPackage ./pkgs/thumbs { };
tmux-thumbs = pkgs.callPackage ./pkgs/tmux-thumbs {
inherit (pkgs.tmuxPlugins) mkTmuxPlugin;

View File

@ -0,0 +1,27 @@
{ lib, stdenv, fetchurl, plasma-workspace }:
stdenv.mkDerivation {
pname = "sddm-theme-utah";
version = "1.0";
dontBuild = true;
dontUnpack = true;
installPhase = ''
mkdir -p $out/share/sddm/themes/
cp -aR ${plasma-workspace}/share/sddm/themes/breeze $out/share/sddm/themes/sddm-theme-custom
chmod +w $out/share/sddm/themes/sddm-theme-custom $out/share/sddm/themes/sddm-theme-custom/theme.conf
cp -aR $src $out/share/sddm/themes/sddm-theme-custom/background.png
sed -i 's/background=.*/background=background.png/g' $out/share/sddm/themes/sddm-theme-custom/theme.conf
'';
src = fetchurl {
url = "https://fliegendewurst.eu/tmp/utah.png";
hash = "sha256-eREFKG5Uj991UB6GppZEOgrao1WToq1OtA+rKB5szs8=";
};
meta = with lib; {
description = "Breeze SDDM theme with Utah desert as background";
homepage = "https://old.reddit.com/r/EarthPorn/comments/15egvz1/an_epic_morning_in_the_remote_utah_desert/";
license = licenses.unfree;
maintainers = with maintainers; [ fliegendewurst ];
platforms = platforms.all;
};
}