mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
c9eb44eab3
* make font derivations fixed-output where applicable * fix dead links * `stdenv.lib` -> `lib` where `stdenv` is not involved * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
31 lines
797 B
Nix
31 lines
797 B
Nix
{ stdenv, fetchurl, mkfontdir, mkfontscale }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "uni-vga";
|
|
|
|
src = fetchurl {
|
|
url = http://www.inp.nsk.su/~bolkhov/files/fonts/univga/uni-vga.tgz;
|
|
sha256 = "05sns8h5yspa7xkl81ri7y1yxf5icgsnl497f3xnaryhx11s2rv6";
|
|
};
|
|
|
|
nativeBuildInputs = [ mkfontdir mkfontscale ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/fonts
|
|
cp *.bdf $out/share/fonts
|
|
cd $out/share/fonts
|
|
mkfontdir
|
|
mkfontscale
|
|
'';
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = "0rfly7r6blr2ykxlv0f6my2w41vvxcw85chspljd2p1fxlr28jd7";
|
|
|
|
meta = {
|
|
description = "Unicode VGA font";
|
|
maintainers = [stdenv.lib.maintainers.ftrvxmtrx];
|
|
homepage = http://www.inp.nsk.su/~bolkhov/files/fonts/univga/;
|
|
license = stdenv.lib.licenses.mit;
|
|
};
|
|
}
|