2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2023-05-24 13:37:59 +00:00
|
|
|
, libqalculate
|
2022-07-14 12:49:19 +00:00
|
|
|
, muparser
|
2023-05-24 13:37:59 +00:00
|
|
|
, python3Packages
|
2022-07-14 12:49:19 +00:00
|
|
|
, qtbase
|
2023-05-24 13:37:59 +00:00
|
|
|
, qtscxml
|
2022-07-14 12:49:19 +00:00
|
|
|
, qtsvg
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "albert";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.20.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-14 12:49:19 +00:00
|
|
|
owner = "albertlauncher";
|
|
|
|
repo = "albert";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-zG6XlFOzSpUSswG4kvKf2lgwUSZkzEVslgQBjzVTLYQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
buildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
libqalculate
|
2022-07-14 12:49:19 +00:00
|
|
|
muparser
|
|
|
|
qtbase
|
2023-05-24 13:37:59 +00:00
|
|
|
qtscxml
|
2022-07-14 12:49:19 +00:00
|
|
|
qtsvg
|
2023-05-24 13:37:59 +00:00
|
|
|
] ++ (with python3Packages; [ python pybind11 ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2022-07-14 12:49:19 +00:00
|
|
|
find -type f -name CMakeLists.txt -exec sed -i {} -e '/INSTALL_RPATH/d' \;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
sed -i src/nativepluginprovider.cpp \
|
2022-07-14 12:49:19 +00:00
|
|
|
-e "/QStringList dirs = {/a QFileInfo(\"$out/lib\").canonicalFilePath(),"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
postFixup = ''
|
|
|
|
for i in $out/{bin/.albert-wrapped,lib/albert/plugins/*.so}; do
|
|
|
|
patchelf $i --add-rpath $out/lib/albert
|
|
|
|
done
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "A fast and flexible keyboard launcher";
|
|
|
|
longDescription = ''
|
|
|
|
Albert is a desktop agnostic launcher. Its goals are usability and beauty,
|
|
|
|
performance and extensibility. It is written in C++ and based on the Qt
|
|
|
|
framework.
|
|
|
|
'';
|
|
|
|
homepage = "https://albertlauncher.github.io";
|
|
|
|
changelog = "https://github.com/albertlauncher/albert/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ ericsagnes synthetica ];
|
2022-07-14 12:49:19 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|