blob: f0fc3dfd3a7d7d48add8a5cce78651ecd8962615 (
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
|
{ lib
, stdenv
, fetchFromGitHub
, cargo
, pkg-config
, rustPlatform
, rustc
, wrapGAppsHook
, gdk-pixbuf
, gtk3
, libsoup_3
, webkitgtk_4_1
}:
stdenv.mkDerivation rec {
pname = "fontfinder";
version = "2.1.0";
src = fetchFromGitHub {
owner = "mmstick";
repo = "fontfinder";
rev = version;
hash = "sha256-C4KqEdqToVnPXFPWvNkl/md9L2W4NxRd5jvZ4E7CtfA=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-PXO8E41KHPNOR527gs2vM3J9JMG0PWi8Eg/13UCkr3U=";
};
nativeBuildInputs = [
cargo
pkg-config
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook
];
buildInputs = [
gdk-pixbuf
gtk3
libsoup_3
webkitgtk_4_1
];
makeFlags = [
"prefix=$(out)"
];
meta = with lib; {
description = "GTK application for browsing and installing fonts from Google's font archive";
homepage = "https://github.com/mmstick/fontfinder";
changelog = "https://github.com/mmstick/fontfinder/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "fontfinder-gtk";
};
}
|