ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / catppuccin-sddm-corners / package.nix
blobe43792fc4a9fe4f4efa8fa985200729a38207658
1 { lib
2 , stdenvNoCC
3 , fetchFromGitHub
4 , libsForQt5
5 , unstableGitUpdater
6 }:
8 stdenvNoCC.mkDerivation {
9   pname = "catppuccin-sddm-corners";
10   version = "0-unstable-2024-05-07";
12   src = fetchFromGitHub {
13     owner = "khaneliman";
14     repo = "catppuccin-sddm-corners";
15     rev = "aca5af5ce0c9dff56e947938697dec40ea101e3e";
16     hash = "sha256-xtcNcjNQSG7SwlNw/EkAU93wFaku+cE1/r6c8c4FrBg=";
17   };
19   dontConfigure = true;
20   dontBuild = true;
21   dontWrapQtApps = true;
23   propagatedBuildInputs = with libsForQt5.qt5; [
24     qtgraphicaleffects
25     qtquickcontrols2
26     qtsvg
27   ];
29   postFixup = ''
30     mkdir -p $out/nix-support
31     echo ${libsForQt5.qt5.qtgraphicaleffects}  >> $out/nix-support/propagated-user-env-packages
32     echo ${libsForQt5.qt5.qtquickcontrols2}  >> $out/nix-support/propagated-user-env-packages
33     echo ${libsForQt5.qt5.qtsvg}  >> $out/nix-support/propagated-user-env-packages
34   '';
36   installPhase = ''
37     runHook preInstall
39     mkdir -p "$out/share/sddm/themes/"
40     cp -r catppuccin/ "$out/share/sddm/themes/catppuccin-sddm-corners"
42     runHook postInstall
43   '';
45   passthru.updateScript = unstableGitUpdater { };
47   meta = {
48     description = "Soothing pastel theme for SDDM based on corners theme";
49     homepage = "https://github.com/khaneliman/sddm-catppuccin-corners";
50     license = lib.licenses.mit;
51     maintainers = with lib.maintainers; [ khaneliman ];
52     platforms = lib.platforms.linux;
53   };