|
@@ -1,50 +1,42 @@
|
|
|
-{ nixpkgs ? import <nixpkgs>{} }:
|
|
|
-
|
|
|
-with nixpkgs;
|
|
|
-
|
|
|
+{ pkgs ? import <nixpkgs> { config = { }; overlays = [ ]; } }:
|
|
|
let
|
|
|
- lemacs = emacsWithPackages(epkgs:
|
|
|
- (with epkgs.melpaPackages; [ess]) ++
|
|
|
- (with epkgs.orgPackages; [org-plus-contrib])
|
|
|
+ lemacs = emacsWithPackages (epkgs:
|
|
|
+ (with epkgs.melpaPackages;
|
|
|
+ [ ess ]
|
|
|
+ ) ++
|
|
|
+ (with epkgs.orgPackages; [ org-plus-contrib ])
|
|
|
);
|
|
|
|
|
|
+ tex = pkgs.texlive.combine {
|
|
|
+ inherit (texlive)
|
|
|
+
|
|
|
+ scheme-small
|
|
|
+ latexmk
|
|
|
+ epstopdf
|
|
|
+
|
|
|
+ ;
|
|
|
+ };
|
|
|
+
|
|
|
+ gitignoreSource = pkgs.nix-gitignore.gitignoreFilterSourcePure (_: _: true);
|
|
|
+
|
|
|
in
|
|
|
-stdenv.mkDerivation rec {
|
|
|
+pkgs.stdenv.mkDerivation {
|
|
|
|
|
|
name = "document";
|
|
|
|
|
|
- src = ./.;
|
|
|
+ src = gitignoreSource ./.gitignore ./.;
|
|
|
|
|
|
buildInputs = [
|
|
|
# Emacs -- necessary for building tex file
|
|
|
lemacs
|
|
|
-
|
|
|
- # TeX compilation
|
|
|
- (texlive.combine {
|
|
|
- inherit (texlive)
|
|
|
- scheme-small
|
|
|
- # Directly required packages
|
|
|
- latexmk
|
|
|
- epstopdf
|
|
|
-
|
|
|
- # Other Packages
|
|
|
- wrapfig
|
|
|
- capt-of
|
|
|
- csquotes
|
|
|
- xpatch
|
|
|
- pstricks
|
|
|
- ;
|
|
|
- })
|
|
|
-
|
|
|
- # Local Packages
|
|
|
-
|
|
|
+ tex
|
|
|
];
|
|
|
|
|
|
buildPhase = "make";
|
|
|
|
|
|
# meta = with lib; {
|
|
|
- # description = "UNL LA Program Operations Manuals";
|
|
|
+ # description = "Description";
|
|
|
# licenses = licenses.nonfree;
|
|
|
- # author = "LA Program <learningassistants@cse.unl.edu>";
|
|
|
+ # author = "Name <email>";
|
|
|
# };
|
|
|
}
|