nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 dtkwidget,
6 gio-qt,
7 cmake,
8 extra-cmake-modules,
9 libsForQt5,
10 wayland,
11 dwayland,
12 pkg-config,
13 glibmm,
14 gtest,
15}:
16
17stdenv.mkDerivation rec {
18 pname = "dde-clipboard";
19 version = "6.0.11";
20
21 src = fetchFromGitHub {
22 owner = "linuxdeepin";
23 repo = pname;
24 rev = version;
25 hash = "sha256-VSwip3WgpOYvqGw7/A8bqsYrVSACrVgoIp/pjXSAKcU=";
26 };
27
28 nativeBuildInputs = [
29 cmake
30 extra-cmake-modules
31 pkg-config
32 libsForQt5.qttools
33 libsForQt5.wrapQtAppsHook
34 ];
35
36 buildInputs = [
37 dtkwidget
38 gio-qt
39 wayland
40 dwayland
41 glibmm
42 gtest
43 ];
44
45 cmakeFlags = [ "-DSYSTEMD_USER_UNIT_DIR=${placeholder "out"}/lib/systemd/user" ];
46
47 meta = with lib; {
48 description = "DDE optional clipboard manager componment";
49 homepage = "https://github.com/linuxdeepin/dde-clipboard";
50 license = licenses.gpl3Plus;
51 platforms = platforms.linux;
52 teams = [ teams.deepin ];
53 };
54}