Commit 01a3f1a1 authored by José Romildo's avatar José Romildo
Browse files

graphite-kde-theme: 2022-02-08 -> unstable-2023-10-25

parent 73789784
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -5,28 +5,33 @@

stdenv.mkDerivation rec {
  pname = "graphite-kde-theme";
  version = "2022-02-08";
  version = "unstable-2023-10-25";

  src = fetchFromGitHub {
    owner = "vinceliuice";
    repo = pname;
    rev = version;
    sha256 = "0pnn5s1vfdgkpsy5sc838731ly1imi8pbyd4asibw4zi238l0nvf";
    rev = "33cc85c49c424dfcba73e6ee84b0dc7fb9e52566";
    hash = "sha256-iQGT2x0wY2EIuYw/a1MB8rT9BxiqWrOyBo6EGIJwsFw=";
  };

  installPhase = ''
    runHook preInstall

  postPatch = ''
    patchShebangs install.sh

    substituteInPlace install.sh \
      --replace '$HOME/.local' $out \
      --replace '$HOME/.config' $out/share

    name= ./install.sh --dest $out/share/themes
    substituteInPlace sddm/*/Main.qml \
      --replace /usr $out
  '';

  installPhase = ''
    runHook preInstall

    name= ./install.sh

    mkdir -p $out/share/sddm/themes
    cp -a sddm/Graphite $out/share/sddm/themes/
    cp -a sddm/Graphite* $out/share/sddm/themes/

    runHook postInstall
  '';