Skip to content

Commit

Permalink
Merge pull request #295147 from mattpolzin/add-pixel-code-font
Browse files Browse the repository at this point in the history
pixel-code: init at 2.1
  • Loading branch information
Aleksanaa committed Apr 10, 2024
2 parents f284c68 + ac9f9e7 commit bb0ade9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pkgs/by-name/pi/pixel-code/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

0 comments on commit bb0ade9

Please sign in to comment.