diff options
author | Mathew Polzin <matt.polzin@gmail.com> | 2024-03-09 17:44:46 -0600 |
---|---|---|
committer | Mathew Polzin <matt.polzin@gmail.com> | 2024-04-10 08:14:10 -0500 |
commit | ac9f9e7eec1c667cc117a79a23d508f41655912a (patch) | |
tree | 93cf27e8fe4f77c9f35f007226974209814de70d /pkgs/by-name/pi | |
parent | 73ac8da709f6199982aaa9b12f9eced9ddd5268e (diff) |
pixel-code: init at 2.1
Diffstat (limited to 'pkgs/by-name/pi')
-rw-r--r-- | pkgs/by-name/pi/pixel-code/package.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/by-name/pi/pixel-code/package.nix b/pkgs/by-name/pi/pixel-code/package.nix new file mode 100644 index 0000000000000..7c1640f8a954e --- /dev/null +++ b/pkgs/by-name/pi/pixel-code/package.nix @@ -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 ]; + }; +} |