2019-05-13 01:55:32 +00:00
|
|
|
{ lib, fetchFromGitHub }:
|
2019-04-25 02:13:39 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
let
|
2019-04-25 02:13:39 +00:00
|
|
|
pname = "xkcd-font";
|
|
|
|
version = "unstable-2017-08-24";
|
2019-08-13 21:52:01 +00:00
|
|
|
in fetchFromGitHub {
|
2019-05-13 01:55:32 +00:00
|
|
|
name = "${pname}-${version}";
|
2019-04-25 02:13:39 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
owner = "ipython";
|
|
|
|
repo = pname;
|
|
|
|
rev = "5632fde618845dba5c22f14adc7b52bf6c52d46d";
|
2019-04-25 02:13:39 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
postFetch = ''
|
2022-05-30 19:57:37 +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
|
2022-05-27 23:24:15 +00:00
|
|
|
|
2022-05-30 19:57:37 +00:00
|
|
|
shopt -s extglob dotglob
|
|
|
|
rm -rf $out/!(share)
|
|
|
|
shopt -u extglob dotglob
|
2019-04-25 02:13:39 +00:00
|
|
|
'';
|
2022-05-27 23:24:15 +00:00
|
|
|
sha256 = "sha256-ITsJPs+ZXwUWYe2AmwyVZib8RV7bpiWHOUD8qEZRHHY=";
|
2019-04-25 02:13:39 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
meta = with lib; {
|
2019-04-25 02:13:39 +00:00
|
|
|
description = "The xkcd font";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ipython/xkcd-font";
|
2019-04-25 02:13:39 +00:00
|
|
|
license = licenses.cc-by-nc-30;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|