nixpkgs-suyu/pkgs/data/fonts/ttf-envy-code-r/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
664 B
Nix
Raw Normal View History

2023-01-25 12:34:24 +01:00
{ lib, stdenvNoCC, fetchzip }:
2017-08-10 21:43:49 +02:00
2023-01-25 12:34:24 +01:00
stdenvNoCC.mkDerivation rec {
pname = "ttf-envy-code-r";
2017-07-06 08:44:43 +02:00
version = "PR7";
2023-01-25 12:34:24 +01:00
src = fetchzip {
url = "http://download.damieng.com/fonts/original/EnvyCodeR-${version}.zip";
hash = "sha256-pJqC/sbNjxEwbVf2CVoXMBI5zvT3DqzRlKSqFT8I2sM=";
};
2017-07-06 08:44:43 +02:00
2023-01-25 12:34:24 +01:00
installPhase = ''
runHook preInstall
2017-07-06 08:44:43 +02:00
2023-01-25 12:34:24 +01:00
install -Dm644 *.ttf -t $out/share/fonts/truetype
install -Dm644 *.txt -t $out/share/doc/${pname}
runHook postInstall
'';
2017-08-10 21:43:49 +02:00
meta = with lib; {
homepage = "https://damieng.com/blog/tag/envy-code-r";
2017-07-06 08:44:43 +02:00
description = "Free scalable coding font by DamienG";
license = licenses.unfree;
maintainers = [ ];
2017-07-06 08:44:43 +02:00
};
}