nixos/pkgs/hack.nix

32 lines
831 B
Nix
Raw Normal View History

{
lib,
fetchzip,
stdenvNoCC,
...
}: let
pname = "Ligatured-Hack";
hashes = (builtins.import ../hashes.nix).hack;
in
stdenvNoCC.mkDerivation {
2023-10-30 00:31:58 +01:00
inherit pname;
inherit (hashes) version;
src = fetchzip {
2023-10-30 00:31:58 +01:00
inherit (hashes) hash;
url = "https://github.com/gaplo917/Ligatured-Hack/releases/download/v3.003%2BNv2.1.0%2BFC%2BJBMv2.242/HackLigatured-v3.003+FC3.1+JBMv2.242.zip";
stripRoot = false;
};
installPhase = ''
mkdir -p $out/share/fonts/truetype/${pname}
cp *.ttf $out/share/fonts/truetype/${pname}
'';
meta = with lib; {
description = "Automatically patch latest Hack Font with latest JetBrains Mono / FiraCode Ligatures";
homepage = "https://github.com/gaplo917/Ligatured-Hack";
license = licenses.gpl3;
maintainers = [];
};
}