Author: raskin
Date: Mon Sep 12 20:50:07 2011
New Revision: 29230
URL: https://ssl.nixos.org/websvn/nix/?rev=29230&sc=1

Log:
Fix disser build

Added:
   nixpkgs/trunk/pkgs/misc/tex/disser/
   nixpkgs/trunk/pkgs/misc/tex/disser/default.nix

Added: nixpkgs/trunk/pkgs/misc/tex/disser/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/misc/tex/disser/default.nix      Mon Sep 12 20:50:07 
2011        (r29230)
@@ -0,0 +1,56 @@
+x@{builderDefsPackage
+  , unzip, texLive, texLiveCMSuper, texLiveAggregationFun
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    ["texLive" "texLiveCMSuper" "texLiveAggregationFun"];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames))
+    ++ [(a.texLiveAggregationFun {paths=[a.texLive a.texLiveCMSuper];})];
+  sourceInfo = rec {
+    baseName="disser";
+    version="1.1.8";
+    name="${baseName}-${version}";
+    project="${baseName}";
+    
url="mirror://sourceforge/project/${project}/${baseName}/${version}/${name}.zip";
+    hash="15509hfcvkk5kfcza149c74qpamwgw88dg0ra749axs8xj8qmlw8";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["setVars" "doMakeInstall"];
+
+  setVars = a.noDepEntry ''
+    export HOME="$TMPDIR"
+  '';
+
+  makeFlags = ["DESTDIR=$out/share/texmf-dist"];
+      
+  meta = {
+    description = "Russian PhD thesis LaTeX package";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux; # platform-independent
+    license = "free"; # LaTeX Project Public License
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://sourceforge.net/projects/disser/files/disser/";;
+    };
+  };
+}) x
+
_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to