nixpkgs/pkgs/data/fonts/xkcd-font/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
775 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchFromGitHub }:
2019-04-25 05:13:39 +03:00
stdenvNoCC.mkDerivation rec {
2019-04-25 05:13:39 +03:00
pname = "xkcd-font";
version = "unstable-2017-08-24";
src = fetchFromGitHub {
owner = "ipython";
repo = pname;
rev = "5632fde618845dba5c22f14adc7b52bf6c52d46d";
hash = "sha256-1DgSx2L+OpXuPVSXbbl/hcZUyBK9ikPyGWuk6wNzlwc=";
};
installPhase = ''
runHook preInstall
2019-04-25 05:13:39 +03: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
runHook postInstall
2019-04-25 05:13:39 +03:00
'';
meta = with lib; {
2019-04-25 05:13:39 +03:00
description = "The xkcd font";
homepage = "https://github.com/ipython/xkcd-font";
2019-04-25 05:13:39 +03:00
license = licenses.cc-by-nc-30;
platforms = platforms.all;
maintainers = [ maintainers.marsam ];
};
}