summary refs log tree commit diff
path: root/pkgs/applications/office/qownnotes/default.nix
blob: 451e4b92185fb9c93c7fceeef5684ca8423e26cf (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
{ mkDerivation, lib, fetchurl, qmake, qttools, qtbase, qtsvg, qtdeclarative, qtxmlpatterns, qtwayland, qtwebsockets, stdenv, qtx11extras }:

mkDerivation rec {
  pname = "qownnotes";
  version = "21.4.0";

  src = fetchurl {
    url = "https://download.tuxfamily.org/${pname}/src/${pname}-${version}.tar.xz";
    # Can grab official version like so:
    # $ curl https://download.tuxfamily.org/qownnotes/src/qownnotes-21.4.0.tar.xz.sha256
    sha256 = "bda454031a79a768b472677036ada7501ea430482277f1694757066922428eec";
  };

  nativeBuildInputs = [ qmake qttools ];
  buildInputs = [
    qtbase qtsvg qtdeclarative qtxmlpatterns qtwebsockets qtx11extras
  ] ++ lib.optional stdenv.isLinux qtwayland;

  meta = with lib; {
    description = "Plain-text file notepad and todo-list manager with markdown support and ownCloud / Nextcloud integration";

    homepage = "https://www.qownnotes.org/";
    platforms = platforms.all;
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ dtzWill totoroot ];
  };
}