depot/third_party/nixpkgs/pkgs/data/fonts/et-book/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

29 lines
694 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation rec {
pname = "et-book";
version = "unstable-2015-10-05";
src = fetchFromGitHub {
owner = "edwardtufte";
repo = pname;
rev = "7e8f02dadcc23ba42b491b39e5bdf16e7b383031";
hash = "sha256-B6ryC9ibNop08TJC/w9LSHHwqV/81EezXsTUJFq8xpo=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp -t $out/share/fonts/truetype source/4-ttf/*.ttf
runHook postInstall
'';
meta = with lib; {
description = "The typeface used in Edward Tuftes books.";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ jethro ];
};
}