aboutsummaryrefslogtreecommitdiff
path: root/modules/pkgs/mathJax.nix
blob: 04b596fcc02bbdb14a04c5ab22b89eaced84fe2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  version = "2.6.1";
  name = "mathjax-${version}";

  src = fetchurl {
    url = "https://github.com/mathjax/MathJax/archive/${version}.tar.gz";
    sha256 = "1f7v48s7km9fi9i0bignn8f91z3bk04n4jx407l3xsd4hxfr8in7";
  };

  installPhase = ''
    mkdir -p $out
    cp -a * $out/
    rm -rf $out/unpacked
    rm -rf "$out/"*.json
  '';
}