Merge pull request #295147 from mattpolzin/add-pixel-code-font

pixel-code: init at 2.1
This commit is contained in:
Aleksana 2024-04-10 22:11:51 +08:00 committed by GitHub
commit bb0ade9b7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,27 @@
{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
name = "pixel-code";
version = "2.1";
src = fetchzip {
url = "https://github.com/qwerasd205/PixelCode/releases/download/v${version}/otf.zip";
hash = "sha256-qu55qXcDL6YIyiFavysI9O2foccvu2Hyw7/JyIMXYv4=";
stripRoot=false;
};
installPhase = ''
runHook preInstall
install -D -m444 -t $out/share/fonts/opentype $src/otf/*.otf
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/qwerasd205/PixelCode";
description = "A pixel font designed to actually be good for programming";
license = licenses.ofl;
maintainers = with maintainers; [ mattpolzin ];
};
}