32 lines
831 B
Nix
32 lines
831 B
Nix
{
|
|
lib,
|
|
fetchzip,
|
|
stdenvNoCC,
|
|
...
|
|
}: let
|
|
pname = "Ligatured-Hack";
|
|
hashes = (builtins.import ../hashes.nix).hack;
|
|
in
|
|
stdenvNoCC.mkDerivation {
|
|
inherit pname;
|
|
inherit (hashes) version;
|
|
|
|
src = fetchzip {
|
|
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 = [];
|
|
};
|
|
}
|