2020-05-03 22:52:19 +03:00
|
|
|
{ stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkgconfig
|
|
|
|
, qtbase
|
|
|
|
, deepin
|
|
|
|
}:
|
2018-11-15 04:16:04 +03:00
|
|
|
|
2019-07-22 05:53:18 +03:00
|
|
|
mkDerivation rec {
|
2018-11-15 04:16:04 +03:00
|
|
|
pname = "deepin-turbo";
|
2019-05-04 14:42:00 +03:00
|
|
|
version = "0.0.3";
|
2018-11-15 04:16:04 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-04 14:42:00 +03:00
|
|
|
sha256 = "15l0pgszmbirlaxj04ishj43kyvigsl1yaf58kxlbdb3lkmcp5f3";
|
2018-11-15 04:16:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
|
|
|
deepin.setupHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
searchHardCodedPaths # for debugging
|
|
|
|
fixPath $out /usr/lib/systemd src/booster-dtkwidget/CMakeLists.txt
|
|
|
|
fixPath $out /usr/lib/deepin-turbo src/booster-dtkwidget/deepin-turbo-booster-dtkwidget.service
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
searchHardCodedPaths $out # for debugging
|
|
|
|
'';
|
|
|
|
|
2020-05-03 23:03:55 +03:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version src; };
|
2018-11-15 04:16:04 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A daemon that helps to launch applications faster";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/linuxdeepin/deepin-turbo";
|
2018-11-15 04:16:04 +03:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|