nixpkgs/pkgs/by-name/al/albert/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

88 lines
2.0 KiB
Nix
Raw Normal View History

2024-06-28 18:52:32 +00:00
{
lib,
stdenv,
fetchFromGitHub,
2024-09-08 17:00:36 +00:00
qt6,
2024-06-28 18:52:32 +00:00
cmake,
libqalculate,
muparser,
libarchive,
python3Packages,
nix-update-script,
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-10-24 16:51:08 +00:00
version = "0.26.6";
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-10-24 16:51:08 +00:00
hash = "sha256-Z4YgqqtJPYMzpnMt74TX2Hi0AEMyhRc2QHSVuwuaxfE=";
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
2024-09-08 17:00:36 +00:00
qt6.wrapQtAppsHook
2022-07-09 20:58:27 +00:00
];
2016-04-28 14:59:21 +00:00
2024-06-28 18:52:32 +00:00
buildInputs =
[
libqalculate
libarchive
muparser
2024-09-08 17:00:36 +00:00
qt6.qtbase
qt6.qtscxml
qt6.qtsvg
qt6.qtdeclarative
qt6.qtwayland
qt6.qt5compat
qt6.qttools
2024-06-28 18:52:32 +00:00
]
++ (with python3Packages; [
python
pybind11
]);
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
substituteInPlace src/app/qtpluginprovider.cpp \
--replace-fail "QStringList install_paths;" "QStringList install_paths;${"\n"}install_paths << 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
2024-08-02 08:26:59 +00:00
meta = {
2022-07-09 20:58:27 +00:00
description = "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";
2023-07-17 20:28:59 +00:00
changelog = "https://github.com/albertlauncher/albert/blob/${finalAttrs.src.rev}/CHANGELOG.md";
# See: https://github.com/NixOS/nixpkgs/issues/279226
2024-08-02 08:26:59 +00:00
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [
2024-06-28 18:52:32 +00:00
ericsagnes
synthetica
eljamm
];
2023-09-16 10:57:11 +00:00
mainProgram = "albert";
2024-08-02 08:26:59 +00:00
platforms = lib.platforms.linux;
2016-01-19 00:41:21 +00:00
};
2023-07-17 20:28:59 +00:00
})