vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / applications / office / cutemarked-ng / default.nix
blob2c55edb037aafa8a559a7fe5b7355933cb4cd0b6
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , qmake
5 , pkg-config
6 , qttools
7 , qtwebengine
8 , wrapQtAppsHook
9 , qmarkdowntextedit
10 , md4c
11 , hunspell
14 stdenv.mkDerivation rec {
15   pname = "CuteMarkEd-NG";
16   version = "unstable-2021-07-29";
18   src = fetchFromGitHub {
19     owner = "Waqar144";
20     repo = pname;
21     rev = "9431ac603cef23d6f29e51e18f1eeee156f5bfb3";
22     sha256 = "sha256-w/D4C2ZYgI/7ZCDamTQlhrJ9vtvAMThgM/fopkdKWYc";
23   };
25   patches = [
26     ./0001-remove-dependency-on-vendored-library.patch
27     ./0002-use-pkgcofig-to-find-libraries.patch
28   ];
30   postPatch = ''
31     substituteInPlace app/app.pro \
32       --replace '$$[QT_INSTALL_BINS]/lrelease' "lrelease"
33   '';
35   nativeBuildInputs = [
36     qmake
37     qttools
38     pkg-config
39     wrapQtAppsHook
40   ];
42   buildInputs = [
43     md4c
44     qtwebengine
45     qmarkdowntextedit
46     hunspell.dev
47   ];
49   meta = with lib; {
50     description = "Qt-based, free and open source markdown editor";
51     mainProgram = "cutemarked";
52     homepage = "https://github.com/Waqar144/CuteMarkEd-NG";
53     license = licenses.gpl2Plus;
54     maintainers = with maintainers; [ rewine ];
55     platforms = platforms.linux;
56   };