@@ -0,0 +1,22 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+fetchFromGitHub rec {
4+ rev = "7e8f02dadcc23ba42b491b39e5bdf16e7b383031";
5+ name = "et-book-${builtins.substring 0 6 rev}";
6+ owner = "edwardtufte";
7+ repo = "et-book";
8+ sha256 = "1bfb1l8k7fzgk2l8cikiyfn5x9m0fiwrnsbc1483p8w3qp58s5n2";
9+
10+ postFetch = ''
11+ tar -xzf $downloadedFile
12+ mkdir -p $out/share/fonts/truetype
13+ cp -t $out/share/fonts/truetype et-book-${rev}/source/4-ttf/*.ttf
14+ '';
15+
16+ meta = with stdenv.lib; {
17+ description = "The typeface used in Edward Tufte’s books.";
18+ license = licenses.mit;
19+ platforms = platforms.all;
20+ maintainers = with maintainers; [ jethro ];
21+ };
22+}