about summary refs log tree commit diff
diff options
context:
space:
mode:
authoreljamm <fedi.jamoussi@protonmail.ch>2024-06-28 21:10:15 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-06-29 10:29:30 +0000
commitde5022c3089a47179adae11a8a70e794d0ab7f3a (patch)
treee3a9a99c61a1edb8aed147a3debacaeae7ec52b7
parentadc86a6ce4c77e085552851c59868e8cb5f099b3 (diff)
albert: 0.23.0 -> 0.24.1 backport-323219-to-release-24.05
(cherry picked from commit bc3de68a7843f05b93042902d106c24baf81faf5)
-rw-r--r--pkgs/applications/misc/albert/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/applications/misc/albert/default.nix b/pkgs/applications/misc/albert/default.nix
index 2a5f47eb261c5..d2bfcd2a3ea2d 100644
--- a/pkgs/applications/misc/albert/default.nix
+++ b/pkgs/applications/misc/albert/default.nix
@@ -21,13 +21,13 @@
 
 stdenv.mkDerivation (finalAttrs: {
   pname = "albert";
-  version = "0.23.0";
+  version = "0.24.1";
 
   src = fetchFromGitHub {
     owner = "albertlauncher";
     repo = "albert";
     rev = "v${finalAttrs.version}";
-    sha256 = "sha256-L6qHaksArgwySk6J7N5zamUDWh5qa6zTtPFdpxU2NTM=";
+    sha256 = "sha256-vlap8gTZYoQS70Co99bZ16Fv9eq1N3rH7skjwrLDWiM=";
     fetchSubmodules = true;
   };
 
@@ -58,8 +58,10 @@ stdenv.mkDerivation (finalAttrs: {
   postPatch = ''
     find -type f -name CMakeLists.txt -exec sed -i {} -e '/INSTALL_RPATH/d' \;
 
-    sed -i src/qtpluginprovider.cpp \
-      -e "/QStringList dirs = {/a    QFileInfo(\"$out/lib\").canonicalFilePath(),"
+    # WARN: This is necessary for albert to detect the package libraries.
+    # Please check if the file below has changed upstream before updating.
+    sed -i src/app/qtpluginprovider.cpp \
+      -e "/QStringList install_paths;/a    install_paths << QFileInfo(\"$out/lib\").canonicalFilePath();"
   '';
 
   postFixup = ''