mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
}:
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "zpix-pixel-font";
|
|
version = "3.1.8";
|
|
|
|
srcs = [
|
|
(fetchurl {
|
|
name = "zpix-pixel-font.bdf";
|
|
url = "https://github.com/SolidZORO/zpix-pixel-font/releases/download/v${version}/zpix.bdf";
|
|
hash = "sha256-qE6YPKuk1FRRrTvmy4YIDuxRfslma264piUDj1FWtk4=";
|
|
})
|
|
(fetchurl {
|
|
name = "zpix-pixel-font.ttf";
|
|
url = "https://github.com/SolidZORO/zpix-pixel-font/releases/download/v${version}/zpix.ttf";
|
|
hash = "sha256-UIgLGsVTbyhYMKfTYiA+MZmV4dFT9HX3sxTdrcc4vE0=";
|
|
})
|
|
];
|
|
|
|
dontUnpack = true;
|
|
__structuredAttrs = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm444 ''${srcs[0]} $out/share/fonts/misc/zpix.bdf
|
|
install -Dm444 ''${srcs[1]} $out/share/fonts/truetype/zpix.ttf
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Pixel font supporting multiple languages like English, Chinese and Japanese";
|
|
homepage = "https://github.com/SolidZORO/zpix-pixel-font/";
|
|
changelog = "https://github.com/SolidZORO/zpix-pixel-font/blob/master/CHANGELOG.md";
|
|
license = licenses.unfree;
|
|
maintainers = [ maintainers.adriangl ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|