mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
victor-mono: use installFonts
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchzip,
|
||||
installFonts,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "victor-mono";
|
||||
version = "1.5.6";
|
||||
@@ -21,22 +21,20 @@ stdenvNoCC.mkDerivation rec {
|
||||
hash = "sha256-PnCCU7PO+XcxUk445sU5xVl8XqdSPJighjtDTqI6qiw=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out/share/fonts/"
|
||||
|
||||
mv OTF $out/share/fonts/opentype
|
||||
mv TTF $out/share/fonts/truetype
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
nativeBuildInputs = [ installFonts ];
|
||||
outputs = [
|
||||
"out"
|
||||
"webfont"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Free programming font with cursive italics and ligatures";
|
||||
homepage = "https://rubjo.github.io/victor-mono";
|
||||
license = lib.licenses.ofl;
|
||||
maintainers = with lib.maintainers; [ jpotier ];
|
||||
maintainers = with lib.maintainers; [
|
||||
jpotier
|
||||
seudonym
|
||||
];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user