Author: simons
Date: Wed Jul 13 16:23:48 2011
New Revision: 27765
URL: https://svn.nixos.org/websvn/nix/?rev=27765&sc=1

Log:
moderncv: cleanup the build instructions

Just add this package to texLiveAggregationFun to install it.

Modified:
   nixpkgs/trunk/pkgs/misc/tex/texlive/moderncv.nix
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Modified: nixpkgs/trunk/pkgs/misc/tex/texlive/moderncv.nix
==============================================================================
--- nixpkgs/trunk/pkgs/misc/tex/texlive/moderncv.nix    Wed Jul 13 15:57:44 
2011        (r27764)
+++ nixpkgs/trunk/pkgs/misc/tex/texlive/moderncv.nix    Wed Jul 13 16:23:48 
2011        (r27765)
@@ -9,10 +9,11 @@
   buildInputs = [texLive unzip];
   phaseNames = ["doCopy"];
   doCopy = fullDepEntry (''
-    ensureDir $out/share
-    cp -r texmf* $out/
-    ln -s $out/texmf* $out/share
-  '') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];
+    ensureDir $out/texmf/tex/latex/moderncv $out/texmf/doc $out/share
+    mv *.cls *.sty $out/texmf/tex/latex/moderncv/
+    mv examples $out/texmf/doc/moderncv
+    ln -s $out/texmf* $out/share/
+  '') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
 
   meta = {
     description = "Extra components for TeXLive";

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Wed Jul 13 15:57:44 
2011        (r27764)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Wed Jul 13 16:23:48 
2011        (r27765)
@@ -8114,7 +8114,7 @@
   };
 
   texLiveModerncv = builderDefsPackage (import 
../misc/tex/texlive/moderncv.nix) {
-    inherit texLive;
+    inherit texLive unzip;
   };
 
   trac = callPackage ../misc/trac {
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to