nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 qmake,
6}:
7
8stdenv.mkDerivation {
9 pname = "qmarkdowntextedit";
10 version = "unstable-2023-04-02";
11
12 src = fetchFromGitHub {
13 owner = "pbek";
14 repo = "qmarkdowntextedit";
15 rev = "a23cc53e7e40e9dcfd0f815b2b3b6a5dc7304405";
16 hash = "sha256-EYBX2SJa8o4R/zEjSFbmFxhLI726WY21XmCkWIqPeFc=";
17 };
18
19 nativeBuildInputs = [ qmake ];
20
21 dontWrapQtApps = true;
22
23 qmakeFlags = [
24 "qmarkdowntextedit-lib.pro"
25 "PREFIX=${placeholder "out"}"
26 "LIBDIR=${placeholder "out"}/lib"
27 ];
28
29 meta = {
30 description = "C++ Qt QPlainTextEdit widget with markdown highlighting and some other goodies";
31 homepage = "https://github.com/pbek/qmarkdowntextedit";
32 license = lib.licenses.mit;
33 platforms = lib.platforms.linux;
34 maintainers = with lib.maintainers; [ wineee ];
35 };
36}