nixpkgs/pkgs/applications/misc/fontfinder/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

59 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cargo
, pkg-config
, rustPlatform
, rustc
, wrapGAppsHook3
, 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
wrapGAppsHook3
];
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";
};
}