python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / qtforkawesome / default.nix
blob5af59da875df43d0a3545c849329c126516fd98b
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , cpp-utilities
5 , qtutilities
6 , qttools
7 , qtbase
8 , cmake
9 , perl
12 let
13   fork_awesome_release = fetchFromGitHub {
14     owner = "ForkAwesome";
15     repo = "Fork-Awesome";
16     rev = "1.2.0";
17     sha256 = "sha256-zG6/0dWjU7/y/oDZuSEv+54Mchng64LVyV8bluskYzc=";
18   };
19 in stdenv.mkDerivation rec {
20   pname = "qtforkawesome";
21   version = "0.1.0";
23   src = fetchFromGitHub {
24     owner = "Martchus";
25     repo = pname;
26     rev = "v${version}";
27     sha256 = "sha256-9e2TCg3itYtHZSvzCoaiIZmgsCMIoebh6C/XWtKz/2Q=";
28   };
30   buildInputs = [
31     qtbase
32     cpp-utilities
33     qtutilities
34   ];
35   nativeBuildInputs = [
36     cmake
37     qttools
38     perl
39     perl.pkgs.YAML
40   ];
41   cmakeFlags = [
42     # Current freetype used by NixOS users doesn't support the `.woff2` font
43     # format, so we use ttf. See
44     # https://github.com/NixOS/nixpkgs/pull/174875#discussion_r883423881
45     "-DFORK_AWESOME_FONT_FILE=${fork_awesome_release}/fonts/forkawesome-webfont.ttf"
46     "-DFORK_AWESOME_ICON_DEFINITIONS=${fork_awesome_release}/src/icons/icons.yml"
47   ];
49   dontWrapQtApps = true;
51   meta = with lib; {
52     homepage = "https://github.com/Martchus/qtforkawesome";
53     description = "Library that bundles ForkAwesome for use within Qt applications";
54     license = licenses.gpl2Plus;
55     maintainers = with maintainers; [ doronbehar ];
56     platforms   = platforms.linux;
57   };