tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cutemarked-ng: init at unstable-2021-07-29
rewine
3 years ago
ece2858b
68e8f8a8
+179
4 changed files
expand all
collapse all
unified
split
pkgs
applications
office
cutemarked-ng
0001-remove-dependency-on-vendored-library.patch
0002-use-pkgcofig-to-find-libraries.patch
default.nix
top-level
all-packages.nix
+95
pkgs/applications/office/cutemarked-ng/0001-remove-dependency-on-vendored-library.patch
···
1
1
+
From b9bf46966dd7931f9f33c30ed608a21d0e71e923 Mon Sep 17 00:00:00 2001
2
2
+
From: rewine <lhongxu@outlook.com>
3
3
+
Date: Tue, 19 Jul 2022 13:19:10 +0800
4
4
+
Subject: [PATCH 1/2] remove dependency on vendored library
5
5
+
6
6
+
---
7
7
+
CuteMarkEd.pro | 4 +---
8
8
+
app-static/app-static.pro | 11 ++---------
9
9
+
app/app.pro | 2 --
10
10
+
app/cutemarkdownhighlighter.h | 2 +-
11
11
+
4 files changed, 4 insertions(+), 15 deletions(-)
12
12
+
13
13
+
diff --git a/CuteMarkEd.pro b/CuteMarkEd.pro
14
14
+
index 4ee92e3..0d247a4 100644
15
15
+
--- a/CuteMarkEd.pro
16
16
+
+++ b/CuteMarkEd.pro
17
17
+
@@ -9,12 +9,10 @@ TEMPLATE = subdirs
18
18
+
CONFIG += c++14
19
19
+
20
20
+
SUBDIRS = \
21
21
+
- 3rdparty \
22
22
+
libs \
23
23
+
app-static \
24
24
+
app \
25
25
+
- fontawesomeicon \
26
26
+
- test
27
27
+
+ fontawesomeicon
28
28
+
29
29
+
# build order: 3rdparty -> libs -> app-static -> app & test
30
30
+
#libs.depends = 3rdparty
31
31
+
diff --git a/app-static/app-static.pro b/app-static/app-static.pro
32
32
+
index cd3c292..560b4fc 100644
33
33
+
--- a/app-static/app-static.pro
34
34
+
+++ b/app-static/app-static.pro
35
35
+
@@ -13,7 +13,6 @@ CONFIG += c++11
36
36
+
37
37
+
INCLUDEPATH += $$PWD
38
38
+
# MD4C library
39
39
+
-INCLUDEPATH += $$PWD/../3rdparty/md4c/src
40
40
+
41
41
+
SOURCES += \
42
42
+
snippets/jsonsnippettranslator.cpp \
43
43
+
@@ -34,10 +33,7 @@ SOURCES += \
44
44
+
revealviewsynchronizer.cpp \
45
45
+
htmlpreviewcontroller.cpp \
46
46
+
htmlviewsynchronizer.cpp \
47
47
+
- yamlheaderchecker.cpp \
48
48
+
- $$PWD/../3rdparty/md4c/src/md4c.c \
49
49
+
- $$PWD/../3rdparty/md4c/src/entity.c \
50
50
+
- $$PWD/../3rdparty/md4c/src/md4c-html.c
51
51
+
+ yamlheaderchecker.cpp
52
52
+
53
53
+
HEADERS += \
54
54
+
snippets/snippet.h \
55
55
+
@@ -64,10 +60,7 @@ HEADERS += \
56
56
+
revealviewsynchronizer.h \
57
57
+
htmlpreviewcontroller.h \
58
58
+
htmlviewsynchronizer.h \
59
59
+
- yamlheaderchecker.h \
60
60
+
- $$PWD/../3rdparty/md4c/src/md4c.h \
61
61
+
- $$PWD/../3rdparty/md4c/src/entity.h \
62
62
+
- $$PWD/../3rdparty/md4c/src/md4c-html.h
63
63
+
+ yamlheaderchecker.h
64
64
+
65
65
+
66
66
+
#unix:!symbian {
67
67
+
diff --git a/app/app.pro b/app/app.pro
68
68
+
index 4827673..ab961cf 100644
69
69
+
--- a/app/app.pro
70
70
+
+++ b/app/app.pro
71
71
+
@@ -40,8 +40,6 @@ macx {
72
72
+
}
73
73
+
74
74
+
#qmarkdowntextedit
75
75
+
-include(../3rdparty/qmarkdowntextedit/qmarkdowntextedit.pri)
76
76
+
-include(../3rdparty/hunspell/hunspell.pri)
77
77
+
INCLUDEPATH += $$PWD
78
78
+
79
79
+
SOURCES += \
80
80
+
diff --git a/app/cutemarkdownhighlighter.h b/app/cutemarkdownhighlighter.h
81
81
+
index c99ab56..78f2be6 100644
82
82
+
--- a/app/cutemarkdownhighlighter.h
83
83
+
+++ b/app/cutemarkdownhighlighter.h
84
84
+
@@ -19,7 +19,7 @@
85
85
+
86
86
+
#include <QSyntaxHighlighter>
87
87
+
88
88
+
-#include "../3rdparty/qmarkdowntextedit/markdownhighlighter.h"
89
89
+
+#include <QMarkdownTextedit/markdownhighlighter.h>
90
90
+
91
91
+
namespace hunspell {
92
92
+
class SpellChecker;
93
93
+
--
94
94
+
2.36.1
95
95
+
+25
pkgs/applications/office/cutemarked-ng/0002-use-pkgcofig-to-find-libraries.patch
···
1
1
+
From bdc66eace846edc8a7b435f7ca9f324427243ce4 Mon Sep 17 00:00:00 2001
2
2
+
From: rewine <lhongxu@outlook.com>
3
3
+
Date: Thu, 21 Jul 2022 17:30:22 +0800
4
4
+
Subject: [PATCH 2/2] use pkgcofig to find libraries
5
5
+
6
6
+
---
7
7
+
app/app.pro | 2 ++
8
8
+
1 file changed, 2 insertions(+)
9
9
+
10
10
+
diff --git a/app/app.pro b/app/app.pro
11
11
+
index ab961cf..475487d 100644
12
12
+
--- a/app/app.pro
13
13
+
+++ b/app/app.pro
14
14
+
@@ -13,6 +13,8 @@ win32: QT += winextras
15
15
+
TARGET = cutemarked
16
16
+
TEMPLATE = app
17
17
+
CONFIG += c++11
18
18
+
+CONFIG += link_pkgconfig
19
19
+
+PKGCONFIG += QMarkdownTextedit hunspell md4c-html
20
20
+
21
21
+
unix:!macx {
22
22
+
CONFIG += link_pkgconfig
23
23
+
--
24
24
+
2.36.1
25
25
+
+57
pkgs/applications/office/cutemarked-ng/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, qmake
5
5
+
, pkg-config
6
6
+
, qttools
7
7
+
, qtbase
8
8
+
, qtwebengine
9
9
+
, wrapQtAppsHook
10
10
+
, qmarkdowntextedit
11
11
+
, md4c
12
12
+
, hunspell
13
13
+
}:
14
14
+
15
15
+
stdenv.mkDerivation rec {
16
16
+
pname = "CuteMarkEd-NG";
17
17
+
version = "unstable-2021-07-29";
18
18
+
19
19
+
src = fetchFromGitHub {
20
20
+
owner = "Waqar144";
21
21
+
repo = pname;
22
22
+
rev = "9431ac603cef23d6f29e51e18f1eeee156f5bfb3";
23
23
+
sha256 = "sha256-w/D4C2ZYgI/7ZCDamTQlhrJ9vtvAMThgM/fopkdKWYc";
24
24
+
};
25
25
+
26
26
+
patches = [
27
27
+
./0001-remove-dependency-on-vendored-library.patch
28
28
+
./0002-use-pkgcofig-to-find-libraries.patch
29
29
+
];
30
30
+
31
31
+
postPatch = ''
32
32
+
substituteInPlace app/app.pro \
33
33
+
--replace '$$[QT_INSTALL_BINS]/lrelease' "lrelease"
34
34
+
'';
35
35
+
36
36
+
nativeBuildInputs = [
37
37
+
qmake
38
38
+
qttools
39
39
+
pkg-config
40
40
+
wrapQtAppsHook
41
41
+
];
42
42
+
43
43
+
buildInputs = [
44
44
+
md4c
45
45
+
qtwebengine
46
46
+
qmarkdowntextedit
47
47
+
hunspell.dev
48
48
+
];
49
49
+
50
50
+
meta = with lib; {
51
51
+
description = "A Qt-based, free and open source markdown editor";
52
52
+
homepage = "https://github.com/Waqar144/CuteMarkEd-NG";
53
53
+
license = licenses.gpl2Plus;
54
54
+
maintainers = with maintainers; [ rewine ];
55
55
+
platforms = platforms.linux;
56
56
+
};
57
57
+
}
+2
pkgs/top-level/all-packages.nix
···
3483
3483
3484
3484
cucumber = callPackage ../development/tools/cucumber {};
3485
3485
3486
3486
+
cutemarked-ng = libsForQt5.callPackage ../applications/office/cutemarked-ng { };
3487
3487
+
3486
3488
dabet = callPackage ../tools/misc/dabet { };
3487
3489
3488
3490
dabtools = callPackage ../applications/radio/dabtools { };