2022-07-09 20:58:27 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2023-04-15 10:57:19 +00:00
|
|
|
, libqalculate
|
2022-07-09 20:58:27 +00:00
|
|
|
, muparser
|
2023-07-17 20:28:59 +00:00
|
|
|
, libarchive
|
2023-04-15 10:57:19 +00:00
|
|
|
, python3Packages
|
2022-07-09 20:58:27 +00:00
|
|
|
, qtbase
|
2023-04-15 10:57:19 +00:00
|
|
|
, qtscxml
|
2022-07-09 20:58:27 +00:00
|
|
|
, qtsvg
|
2023-07-17 20:28:59 +00:00
|
|
|
, qtdeclarative
|
2023-10-20 20:52:25 +00:00
|
|
|
, qtwayland
|
2023-07-17 20:28:59 +00:00
|
|
|
, qt5compat
|
2024-04-12 14:21:03 +00:00
|
|
|
, qttools
|
2022-07-09 20:58:27 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, nix-update-script
|
2023-09-29 09:46:43 +00:00
|
|
|
, pkg-config
|
2022-07-09 20:58:27 +00:00
|
|
|
}:
|
2016-01-19 00:41:21 +00:00
|
|
|
|
2023-07-17 20:28:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2018-12-20 09:28:45 +00:00
|
|
|
pname = "albert";
|
2024-04-12 14:21:03 +00:00
|
|
|
version = "0.23.0";
|
2016-01-19 00:41:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-09 20:58:27 +00:00
|
|
|
owner = "albertlauncher";
|
|
|
|
repo = "albert";
|
2023-07-17 20:28:59 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-04-12 14:21:03 +00:00
|
|
|
sha256 = "sha256-L6qHaksArgwySk6J7N5zamUDWh5qa6zTtPFdpxU2NTM=";
|
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
|
2023-09-29 09:46:43 +00:00
|
|
|
pkg-config
|
2022-07-09 20:58:27 +00:00
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2016-04-28 14:59:21 +00:00
|
|
|
|
2022-07-09 20:58:27 +00:00
|
|
|
buildInputs = [
|
2023-04-15 10:57:19 +00:00
|
|
|
libqalculate
|
2023-07-17 20:28:59 +00:00
|
|
|
libarchive
|
2022-07-09 20:58:27 +00:00
|
|
|
muparser
|
|
|
|
qtbase
|
2023-04-15 10:57:19 +00:00
|
|
|
qtscxml
|
2022-07-09 20:58:27 +00:00
|
|
|
qtsvg
|
2023-07-17 20:28:59 +00:00
|
|
|
qtdeclarative
|
2023-10-20 20:52:25 +00:00
|
|
|
qtwayland
|
2023-07-17 20:28:59 +00:00
|
|
|
qt5compat
|
2024-04-12 14:21:03 +00:00
|
|
|
qttools
|
2023-04-15 10:57:19 +00:00
|
|
|
] ++ (with python3Packages; [ python pybind11 ]);
|
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
|
|
|
|
2023-07-17 20:28:59 +00:00
|
|
|
sed -i src/qtpluginprovider.cpp \
|
2022-07-09 20:58:27 +00:00
|
|
|
-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
|
|
|
'';
|
|
|
|
|
2023-07-17 20:28:59 +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; {
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Fast and flexible keyboard launcher";
|
2022-07-09 20:58:27 +00:00
|
|
|
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";
|
2023-07-17 20:28:59 +00:00
|
|
|
changelog = "https://github.com/albertlauncher/albert/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
2024-01-16 20:25:23 +00:00
|
|
|
# See: https://github.com/NixOS/nixpkgs/issues/279226
|
|
|
|
license = licenses.unfree;
|
2018-10-31 00:16:45 +00:00
|
|
|
maintainers = with maintainers; [ ericsagnes synthetica ];
|
2023-09-16 10:57:11 +00:00
|
|
|
mainProgram = "albert";
|
2022-07-09 20:58:27 +00:00
|
|
|
platforms = platforms.linux;
|
2016-01-19 00:41:21 +00:00
|
|
|
};
|
2023-07-17 20:28:59 +00:00
|
|
|
})
|