2016-04-02 06:29:33 +02:00
|
|
|
{ stdenv, fetchFromGitHub, qtbase, qtsvg, qtx11extras, makeQtWrapper, muparser, cmake }:
|
2016-01-19 01:41:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "albert-${version}";
|
2017-03-06 11:34:40 +01:00
|
|
|
version = "0.9.4";
|
2016-01-19 01:41:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "manuelschneid3r";
|
|
|
|
repo = "albert";
|
|
|
|
rev = "v${version}";
|
2017-03-06 11:34:40 +01:00
|
|
|
sha256 = "131ij525rgh2j9m2vydh79wm4bs0p3x27crar9f16rqhz15gkcpl";
|
2016-01-19 01:41:21 +01:00
|
|
|
};
|
|
|
|
|
2016-04-28 16:59:21 +02:00
|
|
|
nativeBuildInputs = [ cmake makeQtWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase qtsvg qtx11extras muparser ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2016-01-19 01:41:21 +01:00
|
|
|
|
2017-03-11 12:19:04 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/QStringList dirs = {/a \"$out/lib\"," \
|
|
|
|
src/lib/albert/src/pluginsystem/extensionmanager.cpp
|
|
|
|
'';
|
|
|
|
|
2016-01-19 01:41:21 +01:00
|
|
|
fixupPhase = ''
|
|
|
|
wrapQtProgram $out/bin/albert
|
|
|
|
'';
|
|
|
|
|
2016-09-30 01:49:39 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-01-19 01:41:21 +01:00
|
|
|
homepage = https://github.com/manuelSchneid3r/albert;
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|