nixpkgs/pkgs/data/fonts/et-book/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
694 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchFromGitHub }:
2018-09-10 11:29:30 +02: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
2018-09-10 11:29:30 +02:00
mkdir -p $out/share/fonts/truetype
cp -t $out/share/fonts/truetype source/4-ttf/*.ttf
runHook postInstall
2018-09-10 11:29:30 +02:00
'';
meta = with lib; {
2018-09-10 16:31:41 +02:00
description = "The typeface used in Edward Tuftes books.";
license = licenses.mit;
2018-09-10 11:29:30 +02:00
platforms = platforms.all;
maintainers = with maintainers; [ jethro ];
};
}