2020-09-25 04:45:31 +00:00
|
|
|
{ lib, mkDerivation, fetchpatch, fetchFromGitHub, cmake, qttools, qtwebkit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "fontmatrix";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.6.0-qt5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-09-25 04:45:31 +00:00
|
|
|
owner = "fcoiffie";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "fontmatrix";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "1ff8382d8c85c18d9962918f461341ff4fe21993";
|
|
|
|
sha256 = "0yx1gbsjj9ddq1kiqplif1w5x5saw250zbmhmd4phqmaqzr60w0h";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
# Add missing QAction include
|
|
|
|
patches = [ (fetchpatch {
|
|
|
|
url = "https://github.com/fcoiffie/fontmatrix/commit/dc6de8c414ae21516b72daead79c8db88309b102.patch";
|
|
|
|
sha256 = "092860fdyf5gq67jqfxnlgwzjgpizi6j0njjv3m62aiznrhig7c8";
|
|
|
|
})];
|
|
|
|
|
|
|
|
buildInputs = [ qttools qtwebkit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fontmatrix is a free/libre font explorer for Linux, Windows and Mac";
|
|
|
|
homepage = "https://github.com/fontmatrix/fontmatrix";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|