3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/xkcd-font/default.nix
Artturi 63cbdf67ae
fix font fallout from extraPostFetch -> postFetch (#175381)
* gdouros-fonts: fix build

some hashes were changed since ods files are now installed

* camingo-code: fix build

contents not changed

* hannom: fix build

* helvetica-neue-lt-std: fix build

perms changed so the hash changed too

* liberastika: fix build

hash changed due to no doc dir anymore

* kochi-substitute-naga10: fix build

* xkcd-font: use a simpler method to remove unneeded files

* fonts: also remove hidden files
2022-05-30 22:57:37 +03:00

31 lines
795 B
Nix

{ lib, fetchFromGitHub }:
let
pname = "xkcd-font";
version = "unstable-2017-08-24";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "ipython";
repo = pname;
rev = "5632fde618845dba5c22f14adc7b52bf6c52d46d";
postFetch = ''
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
'';
sha256 = "sha256-ITsJPs+ZXwUWYe2AmwyVZib8RV7bpiWHOUD8qEZRHHY=";
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 ];
};
}