diff options
author | figsoda <figsoda@pm.me> | 2023-05-23 22:49:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 22:49:15 -0400 |
commit | 06cb3f79899754af53fc3b2516b7ca8136fb8bb2 (patch) | |
tree | c2f9e940466eb70e67217534e295ce2edfe2575c /pkgs/applications/misc | |
parent | 591eb49bd2b3eda56011931409346ac13e45c6f0 (diff) | |
parent | 2de6809185070def0eaa3da51f522943bc280d88 (diff) |
Merge pull request #233307 from figsoda/fontfinder
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/fontfinder/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/applications/misc/fontfinder/default.nix b/pkgs/applications/misc/fontfinder/default.nix new file mode 100644 index 0000000000000..f0fc3dfd3a7d7 --- /dev/null +++ b/pkgs/applications/misc/fontfinder/default.nix @@ -0,0 +1,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"; + }; +} |