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