nix-shell: add eqexam
This commit is contained in:
parent
99b236a84d
commit
783c358103
1 changed files with 39 additions and 1 deletions
40
shell.nix
40
shell.nix
|
@ -8,6 +8,44 @@ let
|
|||
};
|
||||
pkgs = import pkgsSrc {};
|
||||
|
||||
eqexam.pkgs = [
|
||||
(pkgs.stdenv.mkDerivation rec {
|
||||
version = "2012-05-17";
|
||||
pname = "eqexam";
|
||||
name = "${pname}-${version}";
|
||||
tlType = "run";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "http://www.math.uakron.edu/~dpstory/eqexam/eqexam_pack.zip";
|
||||
sha256 = "0g4w9ma6cr277li5b8dps9fm9jkjlwzwjc6ix01mw4kva4h5fdrj";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.unzip pkgs.texlive.combined.scheme-basic ];
|
||||
|
||||
buildPhase = "
|
||||
latex eqexam.ins
|
||||
";
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/tex/latex/eqexam
|
||||
cp -va *.sty *.cfg *.def $out/tex/latex/eqexam
|
||||
|
||||
mkdir -p $out/doc/latex/eqexam
|
||||
cp -va doc/* $out/doc/latex/eqexam
|
||||
";
|
||||
|
||||
meta = {
|
||||
branch = "3";
|
||||
platforms = pkgs.stdenv.lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
mytexlive = (pkgs.texlive.combine {
|
||||
inherit (pkgs.texlive) scheme-full;
|
||||
inherit eqexam;
|
||||
});
|
||||
|
||||
in pkgs.stdenv.mkDerivation {
|
||||
name = "msc-thesis";
|
||||
shellHook = ''
|
||||
|
@ -141,7 +179,7 @@ in pkgs.stdenv.mkDerivation {
|
|||
];
|
||||
};
|
||||
})
|
||||
pkgs.texlive.combined.scheme-full
|
||||
mytexlive
|
||||
pkgs.zathura
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue