2023-02-02 18:25:31 +00:00
|
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
2023-02-02 18:25:31 +00:00
|
|
|
|
cp -t $out/share/fonts/truetype source/4-ttf/*.ttf
|
|
|
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "The typeface used in Edward Tufte’s books.";
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
maintainers = with maintainers; [ jethro ];
|
|
|
|
|
};
|
|
|
|
|
}
|