Skip to content

Commit

Permalink
Merge pull request #175043 from NixOS/backport-174776-to-release-22.05
Browse files Browse the repository at this point in the history
[Backport release-22.05] xkcd-font: fix build
  • Loading branch information
Mic92 authored May 28, 2022
2 parents aada3db + 01895ff commit 812751d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions pkgs/data/fonts/xkcd-font/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,22 @@ in fetchFromGitHub {
rev = "5632fde618845dba5c22f14adc7b52bf6c52d46d";

postFetch = ''
tar xf $downloadedFile --strip=1
pushd $out
install -Dm444 -t $out/share/fonts/opentype/ xkcd/build/xkcd.otf
install -Dm444 -t $out/share/fonts/truetype/ xkcd-script/font/xkcd-script.ttf
# remove unrelated files
for f in * .*; do
case "$f" in
share|.|..) ;;
*) rm -rf "$f" ;;
esac
done
popd
'';
sha256 = "0xhwa53aiz20763jb9nvbr2zq9k6jl69p07dc4b0apwrrwz0jfr1";
sha256 = "sha256-ITsJPs+ZXwUWYe2AmwyVZib8RV7bpiWHOUD8qEZRHHY=";

meta = with lib; {
description = "The xkcd font";
Expand Down

0 comments on commit 812751d

Please sign in to comment.