2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "xkcd-font";
|
|
|
|
version = "unstable-2017-08-24";
|
|
|
|
in fetchFromGitHub {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
owner = "ipython";
|
|
|
|
repo = pname;
|
|
|
|
rev = "5632fde618845dba5c22f14adc7b52bf6c52d46d";
|
|
|
|
|
|
|
|
postFetch = ''
|
2022-06-16 17:23:12 +00:00
|
|
|
install -Dm444 -t $out/share/fonts/opentype/ $out/xkcd/build/xkcd.otf
|
|
|
|
install -Dm444 -t $out/share/fonts/truetype/ $out/xkcd-script/font/xkcd-script.ttf
|
|
|
|
|
|
|
|
shopt -s extglob dotglob
|
|
|
|
rm -rf $out/!(share)
|
|
|
|
shopt -u extglob dotglob
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-ITsJPs+ZXwUWYe2AmwyVZib8RV7bpiWHOUD8qEZRHHY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The xkcd font";
|
|
|
|
homepage = "https://github.com/ipython/xkcd-font";
|
|
|
|
license = licenses.cc-by-nc-30;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|