depot/pkgs/by-name/pi/pixel-code/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

27 lines
693 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "pixel-code";
version = "2.2";
src = fetchzip {
url = "https://github.com/qwerasd205/PixelCode/releases/download/v${version}/otf.zip";
hash = "sha256-GNYEnv0bIWz5d8821N46FD2NBNBf3Dd7DNqjSdJKDoE=";
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 = "Pixel font designed to actually be good for programming";
license = licenses.ofl;
maintainers = with maintainers; [ mattpolzin ];
};
}