summary refs log tree commit diff
path: root/pkgs/desktops/deepin/deepin-turbo
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2018-11-14 23:16:04 -0200
committerJosé Romildo Malaquias <malaquias@gmail.com>2019-04-07 13:19:05 -0300
commit907142c8f094e325f58d6aa5082cd37503187916 (patch)
tree6fb19c44ef5f74974c9437f73c70b03a93bbcb09 /pkgs/desktops/deepin/deepin-turbo
parentca494bf6c3881124ced632f7b4072e8d1cee0bd3 (diff)
downloadnixpkgs-907142c8f094e325f58d6aa5082cd37503187916.tar
nixpkgs-907142c8f094e325f58d6aa5082cd37503187916.tar.gz
nixpkgs-907142c8f094e325f58d6aa5082cd37503187916.tar.bz2
nixpkgs-907142c8f094e325f58d6aa5082cd37503187916.tar.lz
nixpkgs-907142c8f094e325f58d6aa5082cd37503187916.tar.xz
nixpkgs-907142c8f094e325f58d6aa5082cd37503187916.tar.zst
nixpkgs-907142c8f094e325f58d6aa5082cd37503187916.zip
deepin.deepin-turbo: init at 0.0.2
Diffstat (limited to 'pkgs/desktops/deepin/deepin-turbo')
-rw-r--r--pkgs/desktops/deepin/deepin-turbo/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/desktops/deepin/deepin-turbo/default.nix b/pkgs/desktops/deepin/deepin-turbo/default.nix
new file mode 100644
index 00000000000..6a343f816b9
--- /dev/null
+++ b/pkgs/desktops/deepin/deepin-turbo/default.nix
@@ -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 ];
+  };
+}