2017-12-18 10:16:21 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, makeWrapper, qtbase,
|
|
|
|
qtdeclarative, qtsvg, qtx11extras, muparser, cmake, python3 }:
|
2016-01-19 01:41:21 +01:00
|
|
|
|
2018-06-26 21:56:47 +02:00
|
|
|
let
|
|
|
|
pname = "albert";
|
|
|
|
version = "0.14.21";
|
|
|
|
in
|
2017-05-17 21:26:11 +02:00
|
|
|
mkDerivation rec {
|
2018-06-26 21:56:47 +02:00
|
|
|
name = "${pname}-${version}";
|
2016-01-19 01:41:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-03-20 13:48:38 +01:00
|
|
|
owner = "albertlauncher";
|
2016-01-19 01:41:21 +01:00
|
|
|
repo = "albert";
|
|
|
|
rev = "v${version}";
|
2018-06-26 21:56:47 +02:00
|
|
|
sha256 = "16nk9krn1mwr0bh57viig9hizqyp3slna0qg7s5a736nsfxy226w";
|
2017-11-11 11:34:23 +01:00
|
|
|
fetchSubmodules = true;
|
2016-01-19 01:41:21 +01:00
|
|
|
};
|
|
|
|
|
2017-08-01 12:03:39 +02:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
2016-04-28 16:59:21 +02:00
|
|
|
|
2017-11-11 11:34:23 +01:00
|
|
|
buildInputs = [ qtbase qtdeclarative qtsvg qtx11extras muparser python3 ];
|
2016-04-28 16:59:21 +02:00
|
|
|
|
2017-05-01 16:53:51 +02:00
|
|
|
enableParallelBuilding = true;
|
2016-01-19 01:41:21 +01:00
|
|
|
|
2017-11-11 11:34:23 +01:00
|
|
|
# We don't have virtualbox sdk so disable plugin
|
|
|
|
cmakeFlags = [ "-DBUILD_VIRTUALBOX=OFF" "-DCMAKE_INSTALL_LIBDIR=libs" ];
|
|
|
|
|
2017-03-11 12:19:04 +01:00
|
|
|
postPatch = ''
|
2017-11-11 11:34:23 +01:00
|
|
|
sed -i "/QStringList dirs = {/a \"$out/libs\"," \
|
|
|
|
lib/albertcore/src/core/albert.cpp
|
2017-03-11 12:19:04 +01:00
|
|
|
'';
|
|
|
|
|
2017-05-01 16:53:51 +02:00
|
|
|
preBuild = ''
|
|
|
|
mkdir -p "$out/"
|
|
|
|
ln -s "$PWD/lib" "$out/lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
rm "$out/lib"
|
|
|
|
'';
|
|
|
|
|
2017-08-01 12:03:39 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/albert \
|
|
|
|
--prefix XDG_DATA_DIRS : $out/share
|
|
|
|
'';
|
|
|
|
|
2017-05-17 21:26:11 +02:00
|
|
|
meta = with lib; {
|
2017-03-20 13:48:38 +01:00
|
|
|
homepage = https://albertlauncher.github.io/;
|
2016-01-19 01:41:21 +01:00
|
|
|
description = "Desktop agnostic launcher";
|
2016-09-30 01:49:39 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
platforms = platforms.linux;
|
2016-01-19 01:41:21 +01:00
|
|
|
};
|
|
|
|
}
|