tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
deepin-draw: init at 5.11.4
authored by
rewine
and committed by
rewine
3 years ago
3adf8bdf
8587ea53
+66
2 changed files
expand all
collapse all
unified
split
pkgs
desktops
deepin
apps
deepin-draw
default.nix
default.nix
+65
pkgs/desktops/deepin/apps/deepin-draw/default.nix
···
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchFromGitHub
4
4
+
, fetchpatch
5
5
+
, dtkwidget
6
6
+
, qt5integration
7
7
+
, qt5platform-plugins
8
8
+
, cmake
9
9
+
, qttools
10
10
+
, pkg-config
11
11
+
, wrapQtAppsHook
12
12
+
, qtbase
13
13
+
}:
14
14
+
15
15
+
stdenv.mkDerivation rec {
16
16
+
pname = "deepin-draw";
17
17
+
version = "5.11.4";
18
18
+
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "linuxdeepin";
21
21
+
repo = pname;
22
22
+
rev = version;
23
23
+
sha256 = "sha256-49RQQ52HR5aqzeVEjGm9vQpTOxhY7I0X724x/Bboo90=";
24
24
+
};
25
25
+
26
26
+
patches = [
27
27
+
(fetchpatch {
28
28
+
name = "chore: use GNUInstallDirs in CmakeLists";
29
29
+
url = "https://github.com/linuxdeepin/deepin-draw/commit/dac714fe603e1b77fc39952bfe6949852ee6c2d5.patch";
30
30
+
sha256 = "sha256-zajxmKkZJT1lcyvPv/PRPMxcstF69PB1tC50gYKDlWA=";
31
31
+
})
32
32
+
];
33
33
+
34
34
+
postPatch = ''
35
35
+
substituteInPlace com.deepin.Draw.service \
36
36
+
--replace "/usr/bin/deepin-draw" "$out/bin/deepin-draw"
37
37
+
'';
38
38
+
39
39
+
nativeBuildInputs = [
40
40
+
cmake
41
41
+
qttools
42
42
+
pkg-config
43
43
+
wrapQtAppsHook
44
44
+
];
45
45
+
46
46
+
buildInputs = [
47
47
+
dtkwidget
48
48
+
qt5platform-plugins
49
49
+
];
50
50
+
51
51
+
cmakeFlags = [ "-DVERSION=${version}" ];
52
52
+
53
53
+
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
54
54
+
qtWrapperArgs = [
55
55
+
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
56
56
+
];
57
57
+
58
58
+
meta = with lib; {
59
59
+
description = "Lightweight drawing tool for users to freely draw and simply edit images";
60
60
+
homepage = "https://github.com/linuxdeepin/deepin-draw";
61
61
+
license = licenses.gpl3Plus;
62
62
+
platforms = platforms.linux;
63
63
+
maintainers = teams.deepin.members;
64
64
+
};
65
65
+
}
+1
pkgs/desktops/deepin/default.nix
···
23
23
#### Dtk Application
24
24
deepin-calculator = callPackage ./apps/deepin-calculator { };
25
25
deepin-compressor = callPackage ./apps/deepin-compressor { };
26
26
+
deepin-draw = callPackage ./apps/deepin-draw { };
26
27
deepin-editor = callPackage ./apps/deepin-editor { };
27
28
deepin-terminal = callPackage ./apps/deepin-terminal { };
28
29