mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
c9eb44eab3
* make font derivations fixed-output where applicable * fix dead links * `stdenv.lib` -> `lib` where `stdenv` is not involved * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
25 lines
671 B
Nix
25 lines
671 B
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
pname = "ttf-envy-code-r";
|
|
version = "PR7";
|
|
in fetchzip {
|
|
name = "${pname}-0.${version}";
|
|
|
|
url = "http://download.damieng.com/fonts/original/EnvyCodeR-${version}.zip";
|
|
|
|
postFetch = ''
|
|
mkdir -p $out/share/{doc,fonts}
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
unzip -j $downloadedFile \*.txt -d "$out/share/doc/${pname}"
|
|
'';
|
|
|
|
sha256 = "0x0r07nax68cmz7490x2crzzgdg4j8fg63wppcmjqm0230bggq2z";
|
|
|
|
meta = with lib; {
|
|
homepage = http://damieng.com/blog/tag/envy-code-r;
|
|
description = "Free scalable coding font by DamienG";
|
|
license = licenses.unfree;
|
|
maintainers = [ maintainers.lyt ];
|
|
};
|
|
}
|