about summary refs log tree commit diff
path: root/nixpkgs/pkgs/desktops/deepin/misc/deepin-turbo/default.nix
blob: 7eaca5768607aaf78c3c152a4ac288a38aaa4d94 (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
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, wrapQtAppsHook
, dtkwidget
}:

stdenv.mkDerivation rec {
  pname = "deepin-turbo";
  version = "0.0.6.3";

  src = fetchFromGitHub {
    owner = "linuxdeepin";
    repo = pname;
    rev = version;
    sha256 = "sha256-t6/Ws/Q8DO0zBzrUr/liD61VkxbOv4W4x6VgMWr+Ozk=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
    wrapQtAppsHook
  ];

  buildInputs = [
    dtkwidget
  ];

  postPatch = ''
    substituteInPlace src/{booster-dtkwidget/CMakeLists.txt,booster-desktop/{CMakeLists.txt,desktop.conf},booster-generic/CMakeLists.txt} --replace "/usr" "$out"
  '';

  meta = with lib; {
    description = "A daemon that helps to launch dtk applications faster";
    homepage = "https://github.com/linuxdeepin/deepin-turbo";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = teams.deepin.members;
  };
}