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";