@@ -0,0 +1,35 @@
1+{ stdenv, fetchFromGitHub, qmake, qtbase, qtwebengine, hicolor-icon-theme, makeDesktopItem }:
2+
3+let
4+ description = "A note-taking application that knows programmers and Markdown better";
5+ desktopItem = makeDesktopItem {
6+ name = "VNote";
7+ exec = "vnote";
8+ icon = "vnote";
9+ comment = description;
10+ desktopName = "VNote";
11+ categories = "Office";
12+ };
13+in stdenv.mkDerivation rec {
14+ version = "2.5";
15+ pname = "vnote";
16+
17+ src = fetchFromGitHub {
18+ owner = "tamlok";
19+ repo = "vnote";
20+ fetchSubmodules = true;
21+ rev = "v${version}";
22+ sha256 = "17nl4z1k24wfl18f6fxs2chsmxc2526ckn5pddi2ckirbiwqwm60";
23+ };
24+
25+ nativeBuildInputs = [ qmake ];
26+ buildInputs = [ qtbase qtwebengine hicolor-icon-theme ];
27+
28+ meta = with stdenv.lib; {
29+ inherit description;
30+ homepage = "https://tamlok.github.io/vnote";
31+ license = licenses.mit;
32+ platforms = platforms.linux;
33+ maintainers = [ maintainers.kuznero ];
34+ };
35+}