mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 00:20:58 +00:00
xkcd-font: fix build
This commit is contained in:
@@ -11,11 +11,18 @@ 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
|
||||
for f in *; do
|
||||
[[ "$f" == share ]] && continue
|
||||
rm -rf "$f"
|
||||
done
|
||||
|
||||
popd
|
||||
'';
|
||||
sha256 = "0xhwa53aiz20763jb9nvbr2zq9k6jl69p07dc4b0apwrrwz0jfr1";
|
||||
sha256 = "sha256-oBDP4LG8csjvzSk1+EcPH6hcp44dWtPzVFSifzBq8lU=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "The xkcd font";
|
||||
|
||||
Reference in New Issue
Block a user