2017-05-17 20:26:11 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, qtbase, qtsvg, qtx11extras, muparser, cmake }:
|
2016-01-19 00:41:21 +00:00
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
mkDerivation rec {
|
2016-01-19 00:41:21 +00:00
|
|
|
name = "albert-${version}";
|
2017-06-03 01:45:22 +01:00
|
|
|
version = "0.11.3";
|
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}";
|
2017-06-03 01:45:22 +01:00
|
|
|
sha256 = "0ddz6h1334b9kqy1lfi7qa21znm3l0b9h0d4s62llxdasv103jh5";
|
2016-01-19 00:41:21 +00:00
|
|
|
};
|
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2016-04-28 15:59:21 +01:00
|
|
|
|
|
|
|
buildInputs = [ qtbase qtsvg qtx11extras muparser ];
|
|
|
|
|
2017-05-01 15:53:51 +01:00
|
|
|
enableParallelBuilding = true;
|
2016-01-19 00:41:21 +00:00
|
|
|
|
2017-03-11 11:19:04 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/QStringList dirs = {/a \"$out/lib\"," \
|
2017-04-21 12:28:30 +01:00
|
|
|
src/lib/albert/src/albert/extensionmanager.cpp
|
2017-03-11 11:19:04 +00:00
|
|
|
'';
|
|
|
|
|
2017-05-01 15:53:51 +01:00
|
|
|
preBuild = ''
|
|
|
|
mkdir -p "$out/"
|
|
|
|
ln -s "$PWD/lib" "$out/lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
rm "$out/lib"
|
|
|
|
'';
|
|
|
|
|
2017-05-17 20:26:11 +01: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-30 00:49:39 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
platforms = platforms.linux;
|
2016-01-19 00:41:21 +00:00
|
|
|
};
|
|
|
|
}
|