13 fork_awesome_release = fetchFromGitHub {
14 owner = "ForkAwesome";
15 repo = "Fork-Awesome";
17 sha256 = "sha256-zG6/0dWjU7/y/oDZuSEv+54Mchng64LVyV8bluskYzc=";
19 in stdenv.mkDerivation (finalAttrs: {
20 pname = "qtforkawesome";
23 src = fetchFromGitHub {
25 repo = "qtforkawesome";
26 rev = "v${finalAttrs.version}";
27 sha256 = "sha256-9e2TCg3itYtHZSvzCoaiIZmgsCMIoebh6C/XWtKz/2Q=";
43 # Current freetype used by NixOS users doesn't support the `.woff2` font
44 # format, so we use ttf. See
45 # https://github.com/NixOS/nixpkgs/pull/174875#discussion_r883423881
46 "-DFORK_AWESOME_FONT_FILE=${fork_awesome_release}/fonts/forkawesome-webfont.ttf"
47 "-DFORK_AWESOME_ICON_DEFINITIONS=${fork_awesome_release}/src/icons/icons.yml"
50 dontWrapQtApps = true;
53 homepage = "https://github.com/Martchus/qtforkawesome";
54 description = "Library that bundles ForkAwesome for use within Qt applications";
55 license = licenses.gpl2Plus;
56 maintainers = with maintainers; [ doronbehar ];
57 platforms = platforms.linux ++ platforms.darwin;