1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/applications/misc/albert/default.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2017-12-18 09:16:21 +00:00
{ mkDerivation, lib, fetchFromGitHub, makeWrapper, qtbase,
qtdeclarative, qtsvg, qtx11extras, muparser, cmake, python3 }:
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}";
2018-02-15 02:37:48 +00:00
version = "0.14.15";
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}";
2018-02-15 02:37:48 +00:00
sha256 = "1rjp0bmzs8b9blbxz3sfcanyhgmds882pf1g3jx5qp85y64j8507";
fetchSubmodules = true;
2016-01-19 00:41:21 +00:00
};
2017-08-01 11:03:39 +01:00
nativeBuildInputs = [ cmake makeWrapper ];
2016-04-28 15:59:21 +01:00
buildInputs = [ qtbase qtdeclarative qtsvg qtx11extras muparser python3 ];
2016-04-28 15:59:21 +01:00
2017-05-01 15:53:51 +01: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\"," \
lib/albertcore/src/core/albert.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-08-01 11:03:39 +01:00
postInstall = ''
wrapProgram $out/bin/albert \
--prefix XDG_DATA_DIRS : $out/share
'';
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
};
}