2022-07-09 20:58:27 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, muparser
|
|
|
|
, python3
|
|
|
|
, qtbase
|
|
|
|
, qtcharts
|
|
|
|
, qtdeclarative
|
|
|
|
, qtgraphicaleffects
|
|
|
|
, qtsvg
|
|
|
|
, qtx11extras
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
2016-01-19 00:41:21 +00:00
|
|
|
|
2022-07-09 20:58:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-12-20 09:28:45 +00:00
|
|
|
pname = "albert";
|
2022-10-09 02:04:49 +00:00
|
|
|
version = "0.17.6";
|
2016-01-19 00:41:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-09 20:58:27 +00:00
|
|
|
owner = "albertlauncher";
|
|
|
|
repo = "albert";
|
|
|
|
rev = "v${version}";
|
2022-10-09 02:04:49 +00:00
|
|
|
sha256 = "sha256-nbnywrsKvFG8AkayjnylOKSnn7rRWgNv5zE9DDeOmLw=";
|
2017-11-11 10:34:23 +00:00
|
|
|
fetchSubmodules = true;
|
2016-01-19 00:41:21 +00:00
|
|
|
};
|
|
|
|
|
2022-07-09 20:58:27 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2016-04-28 14:59:21 +00:00
|
|
|
|
2022-07-09 20:58:27 +00:00
|
|
|
buildInputs = [
|
|
|
|
muparser
|
|
|
|
python3
|
|
|
|
qtbase
|
|
|
|
qtcharts
|
|
|
|
qtdeclarative
|
|
|
|
qtgraphicaleffects
|
|
|
|
qtsvg
|
|
|
|
qtx11extras
|
|
|
|
];
|
2017-11-11 10:34:23 +00:00
|
|
|
|
2017-03-11 11:19:04 +00:00
|
|
|
postPatch = ''
|
2022-07-09 20:58:27 +00:00
|
|
|
find -type f -name CMakeLists.txt -exec sed -i {} -e '/INSTALL_RPATH/d' \;
|
2017-03-11 11:19:04 +00:00
|
|
|
|
2022-07-09 20:58:27 +00:00
|
|
|
sed -i src/app/main.cpp \
|
|
|
|
-e "/QStringList dirs = {/a QFileInfo(\"$out/lib\").canonicalFilePath(),"
|
2017-05-01 14:53:51 +00:00
|
|
|
'';
|
|
|
|
|
2022-07-09 20:58:27 +00:00
|
|
|
postFixup = ''
|
|
|
|
for i in $out/{bin/.albert-wrapped,lib/albert/plugins/*.so}; do
|
|
|
|
patchelf $i --add-rpath $out/lib/albert
|
|
|
|
done
|
2017-05-01 14:53:51 +00:00
|
|
|
'';
|
|
|
|
|
2022-12-25 22:11:14 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-07-09 20:58:27 +00:00
|
|
|
|
2017-05-17 19:26:11 +00:00
|
|
|
meta = with lib; {
|
2022-07-09 20:58:27 +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;
|
2018-10-31 00:16:45 +00:00
|
|
|
maintainers = with maintainers; [ ericsagnes synthetica ];
|
2022-07-09 20:58:27 +00:00
|
|
|
platforms = platforms.linux;
|
2016-01-19 00:41:21 +00:00
|
|
|
};
|
|
|
|
}
|