15 stdenv.mkDerivation (finalAttrs: {
19 src = fetchFromGitHub {
20 owner = "albertlauncher";
22 rev = "v${finalAttrs.version}";
23 hash = "sha256-MEpBZV1Fxoq24eT1hgyrp33qcaLqmQ+aAP974Yn8d2g=";
24 fetchSubmodules = true;
46 ++ (with python3Packages; [
52 find -type f -name CMakeLists.txt -exec sed -i {} -e '/INSTALL_RPATH/d' \;
54 substituteInPlace src/app/qtpluginprovider.cpp \
55 --replace-fail "QStringList install_paths;" "QStringList install_paths;${"\n"}install_paths << QFileInfo(\"$out/lib\").canonicalFilePath();"
59 for i in $out/{bin/.albert-wrapped,lib/albert/plugins/*.so}; do
60 patchelf $i --add-rpath $out/lib/albert
65 updateScript = nix-update-script { };
69 description = "Fast and flexible keyboard launcher";
71 Albert is a desktop agnostic launcher. Its goals are usability and beauty,
72 performance and extensibility. It is written in C++ and based on the Qt
75 homepage = "https://albertlauncher.github.io";
76 changelog = "https://github.com/albertlauncher/albert/blob/${finalAttrs.src.rev}/CHANGELOG.md";
77 # See: https://github.com/NixOS/nixpkgs/issues/279226
78 license = lib.licenses.unfree;
79 maintainers = with lib.maintainers; [
84 mainProgram = "albert";
85 platforms = lib.platforms.linux;