3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/albert/default.nix
Jon Banafato aeb401d9c6 albert: 0.14.15 -> 0.14.21 (#42626)
Albert has a new release including several extensions and bug fixes.
Additionally, this upgrade solves current QT build issues. See
https://albertlauncher.github.io/news/ for the full changelog.
2018-06-26 21:56:47 +02:00

55 lines
1.3 KiB
Nix

{ mkDerivation, lib, fetchFromGitHub, makeWrapper, qtbase,
qtdeclarative, qtsvg, qtx11extras, muparser, cmake, python3 }:
let
pname = "albert";
version = "0.14.21";
in
mkDerivation rec {
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "albertlauncher";
repo = "albert";
rev = "v${version}";
sha256 = "16nk9krn1mwr0bh57viig9hizqyp3slna0qg7s5a736nsfxy226w";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ qtbase qtdeclarative qtsvg qtx11extras muparser python3 ];
enableParallelBuilding = true;
# We don't have virtualbox sdk so disable plugin
cmakeFlags = [ "-DBUILD_VIRTUALBOX=OFF" "-DCMAKE_INSTALL_LIBDIR=libs" ];
postPatch = ''
sed -i "/QStringList dirs = {/a \"$out/libs\"," \
lib/albertcore/src/core/albert.cpp
'';
preBuild = ''
mkdir -p "$out/"
ln -s "$PWD/lib" "$out/lib"
'';
postBuild = ''
rm "$out/lib"
'';
postInstall = ''
wrapProgram $out/bin/albert \
--prefix XDG_DATA_DIRS : $out/share
'';
meta = with lib; {
homepage = https://albertlauncher.github.io/;
description = "Desktop agnostic launcher";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ericsagnes ];
platforms = platforms.linux;
};
}