blob: b82d5b160c31e8776126130f2fc3f7b13c6a2337 (
plain) (
blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ stdenv
, lib
, fetchFromGitHub
, cpp-utilities
, qtutilities
, qttools
, qtbase
, cmake
, perl
}:
let
fork_awesome_release = fetchFromGitHub {
owner = "ForkAwesome";
repo = "Fork-Awesome";
rev = "1.2.0";
sha256 = "sha256-zG6/0dWjU7/y/oDZuSEv+54Mchng64LVyV8bluskYzc=";
};
in stdenv.mkDerivation rec {
pname = "qtforkawesome";
version = "0.0.4";
src = fetchFromGitHub {
owner = "Martchus";
repo = pname;
rev = "v${version}";
sha256 = "sha256-J3F+ikz6gQqV+JsOX8EpMOWoTmI6UK5KndFALUo4oiU=";
};
buildInputs = [
qtbase
cpp-utilities
qtutilities
];
nativeBuildInputs = [
cmake
qttools
perl
perl.pkgs.YAML
];
cmakeFlags = [
# Current freetype used by NixOS users doesn't support the `.woff2` font
# format, so we use ttf. See
# https://github.com/NixOS/nixpkgs/pull/174875#discussion_r883423881
"-DFORK_AWESOME_FONT_FILE=${fork_awesome_release}/fonts/forkawesome-webfont.ttf"
"-DFORK_AWESOME_ICON_DEFINITIONS=${fork_awesome_release}/src/icons/icons.yml"
];
dontWrapQtApps = true;
meta = with lib; {
homepage = "https://github.com/Martchus/qtforkawesome";
description = "Library that bundles ForkAwesome for use within Qt applications";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ doronbehar ];
platforms = platforms.linux;
};
}
|