nixpkgs/pkgs/applications/misc/albert/default.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

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