summary refs log tree commit diff
path: root/pkgs/desktops/deepin/deepin-turbo/default.nix
blob: 6bba51ac674b967e85e8d123b7efce8dfb3f38c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ stdenv
, mkDerivation
, fetchFromGitHub
, cmake
, pkgconfig
, qtbase
, deepin
}:

mkDerivation rec {
  pname = "deepin-turbo";
  version = "0.0.3";

  src = fetchFromGitHub {
    owner = "linuxdeepin";
    repo = pname;
    rev = version;
    sha256 = "15l0pgszmbirlaxj04ishj43kyvigsl1yaf58kxlbdb3lkmcp5f3";
  };

  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 pname version src; };

  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 ];
  };
}