2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchFromGitHub }:
|
2019-04-25 03:13:39 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
let
|
2019-04-25 03:13:39 +01:00
|
|
|
pname = "xkcd-font";
|
|
|
|
version = "unstable-2017-08-24";
|
2019-08-13 22:52:01 +01:00
|
|
|
in fetchFromGitHub {
|
2019-05-13 02:55:32 +01:00
|
|
|
name = "${pname}-${version}";
|
2019-04-25 03:13:39 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
owner = "ipython";
|
|
|
|
repo = pname;
|
|
|
|
rev = "5632fde618845dba5c22f14adc7b52bf6c52d46d";
|
2019-04-25 03:13:39 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
postFetch = ''
|
|
|
|
tar xf $downloadedFile --strip=1
|
2019-04-25 03:13:39 +01:00
|
|
|
install -Dm444 -t $out/share/fonts/opentype/ xkcd/build/xkcd.otf
|
|
|
|
install -Dm444 -t $out/share/fonts/truetype/ xkcd-script/font/xkcd-script.ttf
|
|
|
|
'';
|
2019-05-13 02:55:32 +01:00
|
|
|
sha256 = "0xhwa53aiz20763jb9nvbr2zq9k6jl69p07dc4b0apwrrwz0jfr1";
|
2019-04-25 03:13:39 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2019-04-25 03:13:39 +01:00
|
|
|
description = "The xkcd font";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ipython/xkcd-font";
|
2019-04-25 03:13:39 +01:00
|
|
|
license = licenses.cc-by-nc-30;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|