summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/graphics/fontmatrix/default.nix
blob: 3c67b11844d078cc97dcd16c470fd6240f2af6c8 (plain)
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
{ lib, mkDerivation, fetchpatch, fetchFromGitHub, cmake, qttools, qtwebkit }:

mkDerivation rec {
  pname = "fontmatrix";
  version = "0.6.0-qt5";

  src = fetchFromGitHub {
    owner = "fcoiffie";
    repo = "fontmatrix";
    rev = "1ff8382d8c85c18d9962918f461341ff4fe21993";
    sha256 = "0yx1gbsjj9ddq1kiqplif1w5x5saw250zbmhmd4phqmaqzr60w0h";
  };

  # Add missing QAction include
  patches = [ (fetchpatch {
    url = "https://github.com/fcoiffie/fontmatrix/commit/dc6de8c414ae21516b72daead79c8db88309b102.patch";
    sha256 = "092860fdyf5gq67jqfxnlgwzjgpizi6j0njjv3m62aiznrhig7c8";
  })];

  buildInputs = [ qttools qtwebkit ];

  nativeBuildInputs = [ cmake ];

  hardeningDisable = [ "format" ];

  meta = with lib; {
    description = "Fontmatrix is a free/libre font explorer for Linux, Windows and Mac";
    homepage = "https://github.com/fontmatrix/fontmatrix";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
  };
}