git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #46471 from jethrokuan/feat/et-book
de7c00aMatthew Bauer
maintainers/maintainer-list.nix+5
@@ -1847,6 +1847,11 @@
1847 github = "jerith666";
1847 github = "jerith666";
1848 name = "Matt McHenry";
1848 name = "Matt McHenry";
1849 };
1849 };
1850+ jethro = {
1851+ email = "jethrokuan95@gmail.com";
1852+ github = "jethrokuan";
1853+ name = "Jethro Kuan";
1854+ };
1850 jfb = {
1855 jfb = {
1851 email = "james@yamtime.com";
1856 email = "james@yamtime.com";
1852 github = "tftio";
1857 github = "tftio";
pkgs/data/fonts/et-book/default.nixnew file+22
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -151,6 +151,8 @@ with pkgs;
151
151
152 ebook2cw = callPackage ../applications/misc/ebook2cw { };
152 ebook2cw = callPackage ../applications/misc/ebook2cw { };
153
153
154+ etBook = callPackage ../data/fonts/et-book { };
155+
154 fetchbower = callPackage ../build-support/fetchbower {
156 fetchbower = callPackage ../build-support/fetchbower {
155 inherit (nodePackages) bower2nix;
157 inherit (nodePackages) bower2nix;
156 };
158 };