From 5c265c0e93ebd00e1c6989be1b1cf001a137f6f6 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Sat, 6 Jun 2026 14:49:58 -0700 Subject: [PATCH] prociono: use installFonts, modernize Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/pr/prociono/package.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/pr/prociono/package.nix b/pkgs/by-name/pr/prociono/package.nix index 598d479909cb..9f8986a7ebc3 100644 --- a/pkgs/by-name/pr/prociono/package.nix +++ b/pkgs/by-name/pr/prociono/package.nix @@ -1,13 +1,22 @@ { lib, - fetchFromGitHub, stdenvNoCC, + fetchFromGitHub, + installFonts, }: stdenvNoCC.mkDerivation { pname = "prociono"; version = "2011-05-25"; + outputs = [ + "out" + "webfont" + ]; + + strictDeps = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "theleagueof"; repo = "prociono"; @@ -15,14 +24,7 @@ stdenvNoCC.mkDerivation { hash = "sha256-gC5E0Z0O2cnthoBEu+UOQLsr3/a/3/JPIx3WCPsXXtk="; }; - installPhase = '' - runHook preInstall - - install -D -m444 -t $out/share/fonts/truetype $src/*.ttf - install -D -m444 -t $out/share/fonts/opentype $src/*.otf - - runHook postInstall - ''; + nativeBuildInputs = [ installFonts ]; meta = { description = "Roman serif with blackletter elements";