summary refs log tree commit diff
path: root/pkgs/development/libraries/qmarkdowntextedit/default.nix
blob: f3ac9693807b7cc85946ada6e1f0bb51f0301f72 (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
{ lib
, stdenv
, fetchFromGitHub
, qmake
}:

stdenv.mkDerivation rec {
  pname = "qmarkdowntextedit";
  version = "unstable-2023-04-02";

  src = fetchFromGitHub {
    owner = "pbek";
    repo = pname;
    rev = "a23cc53e7e40e9dcfd0f815b2b3b6a5dc7304405";
    hash = "sha256-EYBX2SJa8o4R/zEjSFbmFxhLI726WY21XmCkWIqPeFc=";
  };

  nativeBuildInputs = [ qmake ];

  dontWrapQtApps = true;

  qmakeFlags = [
    "qmarkdowntextedit-lib.pro"
    "PREFIX=${placeholder "out"}"
    "LIBDIR=${placeholder "out"}/lib"
  ];

  meta = with lib; {
    description = "C++ Qt QPlainTextEdit widget with markdown highlighting and some other goodies";
    homepage = "https://github.com/pbek/qmarkdowntextedit";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ rewine ];
  };
}