Merge pull request #59122 from romildo/upd.deepin.deepin-turbo

deepin.deepin-turbo: init at 0.0.2
This commit is contained in:
xeji 2019-04-07 22:45:56 +02:00 committed by GitHub
commit 2aecd159b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 1 deletions

View file

@ -0,0 +1,44 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, qtbase, deepin }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-turbo";
version = "0.0.2";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "13vbj18pclv7c25pb1y5x6dd7wmcgisa40mb13qyixnzpq2ssjg5";
};
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
'';
passthru.updateScript = deepin.updateScript { inherit name; };
meta = with stdenv.lib; {
description = "A daemon that helps to launch applications faster";
homepage = https://github.com/linuxdeepin/deepin-turbo;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}

View file

@ -34,6 +34,7 @@ let
deepin-terminal = callPackage ./deepin-terminal {
wnck = pkgs.libwnck3;
};
deepin-turbo = callPackage ./deepin-turbo { };
deepin-wallpapers = callPackage ./deepin-wallpapers { };
deepin-wm = callPackage ./deepin-wm { };
dpa-ext-gnomekeyring = callPackage ./dpa-ext-gnomekeyring { };

View file

@ -11,7 +11,7 @@ searchHardCodedPaths() {
grep --color=always -r -E '\<(ExecStart|Exec|startDetached|execute|exec\.(Command|LookPath))\>' $dir || true
echo ----------- looking for hard coded paths
grep --color=always -r -E '/(usr|bin|sbin|etc|var|opt)\>' $dir || true
grep --color=always -a -r -E '/(usr|bin|sbin|etc|var|opt)\>' $dir || true
echo ----------- done
}