2017-12-18 01:16:21 -08:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, makeWrapper, qtbase,
|
2018-12-20 01:28:45 -08:00
|
|
|
qtdeclarative, qtsvg, qtx11extras, muparser, cmake, python3,
|
|
|
|
qtcharts }:
|
2016-01-18 16:41:21 -08:00
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
mkDerivation rec {
|
2018-12-20 01:28:45 -08:00
|
|
|
pname = "albert";
|
2021-01-17 09:52:04 -08:00
|
|
|
version = "0.17.2";
|
2016-01-18 16:41:21 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-03-20 05:48:38 -07:00
|
|
|
owner = "albertlauncher";
|
2016-01-18 16:41:21 -08:00
|
|
|
repo = "albert";
|
|
|
|
rev = "v${version}";
|
2021-01-17 09:52:04 -08:00
|
|
|
sha256 = "0lpp8rqx5b6rwdpcdldfdlw5327harr378wnfbc6rp3ajmlb4p7w";
|
2017-11-11 02:34:23 -08:00
|
|
|
fetchSubmodules = true;
|
2016-01-18 16:41:21 -08:00
|
|
|
};
|
|
|
|
|
2017-08-01 03:03:39 -07:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
2016-04-28 07:59:21 -07:00
|
|
|
|
2018-12-20 01:28:45 -08:00
|
|
|
buildInputs = [ qtbase qtdeclarative qtsvg qtx11extras muparser python3 qtcharts ];
|
2016-04-28 07:59:21 -07:00
|
|
|
|
2017-11-11 02:34:23 -08:00
|
|
|
# We don't have virtualbox sdk so disable plugin
|
|
|
|
cmakeFlags = [ "-DBUILD_VIRTUALBOX=OFF" "-DCMAKE_INSTALL_LIBDIR=libs" ];
|
|
|
|
|
2017-03-11 03:19:04 -08:00
|
|
|
postPatch = ''
|
2017-11-11 02:34:23 -08:00
|
|
|
sed -i "/QStringList dirs = {/a \"$out/libs\"," \
|
2019-02-06 06:26:36 -08:00
|
|
|
src/app/main.cpp
|
2017-03-11 03:19:04 -08:00
|
|
|
'';
|
|
|
|
|
2017-05-01 07:53:51 -07:00
|
|
|
preBuild = ''
|
|
|
|
mkdir -p "$out/"
|
|
|
|
ln -s "$PWD/lib" "$out/lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
rm "$out/lib"
|
|
|
|
'';
|
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://albertlauncher.github.io/";
|
2016-01-18 16:41:21 -08:00
|
|
|
description = "Desktop agnostic launcher";
|
2016-09-29 16:49:39 -07:00
|
|
|
license = licenses.gpl3Plus;
|
2018-10-30 17:16:45 -07:00
|
|
|
maintainers = with maintainers; [ ericsagnes synthetica ];
|
2016-09-29 16:49:39 -07:00
|
|
|
platforms = platforms.linux;
|
2016-01-18 16:41:21 -08:00
|
|
|
};
|
|
|
|
}
|