mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
a211d94291
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
74 lines
1.6 KiB
Nix
74 lines
1.6 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, muparser
|
|
, python3
|
|
, qtbase
|
|
, qtcharts
|
|
, qtdeclarative
|
|
, qtgraphicaleffects
|
|
, qtsvg
|
|
, qtx11extras
|
|
, wrapQtAppsHook
|
|
, nix-update-script
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "albert";
|
|
version = "0.17.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "albertlauncher";
|
|
repo = "albert";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-nbnywrsKvFG8AkayjnylOKSnn7rRWgNv5zE9DDeOmLw=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
muparser
|
|
python3
|
|
qtbase
|
|
qtcharts
|
|
qtdeclarative
|
|
qtgraphicaleffects
|
|
qtsvg
|
|
qtx11extras
|
|
];
|
|
|
|
postPatch = ''
|
|
find -type f -name CMakeLists.txt -exec sed -i {} -e '/INSTALL_RPATH/d' \;
|
|
|
|
sed -i src/app/main.cpp \
|
|
-e "/QStringList dirs = {/a QFileInfo(\"$out/lib\").canonicalFilePath(),"
|
|
'';
|
|
|
|
postFixup = ''
|
|
for i in $out/{bin/.albert-wrapped,lib/albert/plugins/*.so}; do
|
|
patchelf $i --add-rpath $out/lib/albert
|
|
done
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
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;
|
|
maintainers = with maintainers; [ ericsagnes synthetica ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|