summary refs log tree commit diff
path: root/pkgs/applications/office/vnote/default.nix
blob: 0e6921accb39f4899af492c0fd03224e023cdf31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchFromGitHub, qmake, qtbase, qtwebengine, hicolor-icon-theme, makeDesktopItem }:

let
  description = "A note-taking application that knows programmers and Markdown better";
  desktopItem = makeDesktopItem {
    name = "VNote";
    exec = "vnote";
    icon = "vnote";
    comment = description;
    desktopName = "VNote";
    categories = "Office";
  };
in stdenv.mkDerivation rec {
  version = "2.6";
  pname = "vnote";

  src = fetchFromGitHub {
    owner = "tamlok";
    repo = "vnote";
    fetchSubmodules = true;
    rev = "v${version}";
    sha256 = "10lnzzwz7fjj55kbn3j6gdl9yi6a85mdjis586p3zcc4830mlv91";
  };

  nativeBuildInputs = [ qmake ];
  buildInputs = [ qtbase qtwebengine hicolor-icon-theme ];

  meta = with stdenv.lib; {
    inherit description;
    homepage = "https://tamlok.github.io/vnote";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = [ maintainers.kuznero ];
  };
}