about summary refs log tree commit diff
path: root/pkgs/data/themes
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2023-11-22 07:16:30 -0300
committerGitHub <noreply@github.com>2023-11-22 07:16:30 -0300
commit2c8d4198c86bee2e49267fa982283b9a39bed99c (patch)
tree90cf613e78880d91f90ce0210fb2160a0f9558f6 /pkgs/data/themes
parentdd509de23e8c2e214ff35cb3a447c42c7a0fe4aa (diff)
parent6375c59c02bc492874d42ca016c1ad0c7ea537bf (diff)
downloadnixlib-2c8d4198c86bee2e49267fa982283b9a39bed99c.tar
nixlib-2c8d4198c86bee2e49267fa982283b9a39bed99c.tar.gz
nixlib-2c8d4198c86bee2e49267fa982283b9a39bed99c.tar.bz2
nixlib-2c8d4198c86bee2e49267fa982283b9a39bed99c.tar.lz
nixlib-2c8d4198c86bee2e49267fa982283b9a39bed99c.tar.xz
nixlib-2c8d4198c86bee2e49267fa982283b9a39bed99c.tar.zst
nixlib-2c8d4198c86bee2e49267fa982283b9a39bed99c.zip
Merge pull request #264422 from romildo/upd.graphite-kde-theme
graphite-kde-theme: 2022-02-08 -> unstable-2023-10-25
Diffstat (limited to 'pkgs/data/themes')
-rw-r--r--pkgs/data/themes/graphite-kde-theme/default.nix33
1 files changed, 26 insertions, 7 deletions
diff --git a/pkgs/data/themes/graphite-kde-theme/default.nix b/pkgs/data/themes/graphite-kde-theme/default.nix
index dd3a215a0385..d098cf6aab45 100644
--- a/pkgs/data/themes/graphite-kde-theme/default.nix
+++ b/pkgs/data/themes/graphite-kde-theme/default.nix
@@ -1,36 +1,55 @@
 { stdenv
 , lib
 , fetchFromGitHub
+, kdeclarative
+, plasma-framework
+, plasma-workspace
+, gitUpdater
 }:
 
 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
+  # Propagate sddm theme dependencies to user env otherwise sddm does
+  # not find them. Putting them in buildInputs is not enough.
+  propagatedUserEnvPkgs = [
+    kdeclarative.bin
+    plasma-framework
+    plasma-workspace
+  ];
 
+  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
   '';
 
+  passthru.updateScript = gitUpdater { };
+
   meta = with lib; {
     description = "A flat Design theme for KDE Plasma desktop";
     homepage = "https://github.com/vinceliuice/Graphite-kde-theme";