mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
libertinus: use installFonts
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
installFonts,
|
||||
zstd,
|
||||
}:
|
||||
|
||||
@@ -14,15 +15,15 @@ stdenvNoCC.mkDerivation rec {
|
||||
hash = "sha256-JQZ3ySnTd1owkTZDWUN5ryZKwu8oAQNaody+MLm+I6Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ zstd ];
|
||||
outputs = [
|
||||
"out"
|
||||
"webfont"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -m644 -Dt $out/share/fonts/opentype static/OTF/*.otf
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
installFonts
|
||||
zstd
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Libertinus font family";
|
||||
|
||||
Reference in New Issue
Block a user