vt323: use installFonts hook
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
installFonts,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -15,9 +16,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-Abq0/hU/BXJMxQxzhZG1SEGIZYt+qofuXwy5/A9byQ8=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp fonts/ttf/VT323-Regular.ttf $out/share/fonts/truetype
|
||||
nativeBuildInputs = [ installFonts ];
|
||||
|
||||
preInstall = ''
|
||||
rm -r old
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user