@@ -1,55 +0,0 @@
1−x@{builderDefsPackage
2− , unzip, texLive, texLiveCMSuper, texLiveAggregationFun
3− , ...}:
4−builderDefsPackage
5−(a :
6−let
7− helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
8− ["texLive" "texLiveCMSuper" "texLiveAggregationFun"];
9−
10− buildInputs = map (n: builtins.getAttr n x)
11− (builtins.attrNames (builtins.removeAttrs x helperArgNames))
12− ++ [(a.texLiveAggregationFun {paths=[a.texLive a.texLiveCMSuper];})];
13− sourceInfo = rec {
14− baseName="disser";
15− version="1.3.0";
16− name="${baseName}-${version}";
17− project="${baseName}";
18− url="mirror://sourceforge/project/${project}/${baseName}/${version}/${name}.zip";
19− hash="1iab3va6xw53l8xzmd83kbnzqah9f6imzzfd3c2054q53p0ndlim";
20− };
21−in
22−rec {
23− src = a.fetchurl {
24− url = sourceInfo.url;
25− sha256 = sourceInfo.hash;
26− };
27−
28− inherit (sourceInfo) name version;
29− inherit buildInputs;
30−
31− /* doConfigure should be removed if not needed */
32− phaseNames = ["setVars" "doMakeInstall"];
33−
34− setVars = a.noDepEntry ''
35− export HOME="$TMPDIR"
36− '';
37−
38− makeFlags = ["DESTDIR=$out/share/texmf-dist"];
39−
40− meta = {
41− description = "Russian PhD thesis LaTeX package";
42− maintainers = with a.lib.maintainers;
43− [
44− raskin
45− ];
46− platforms = with a.lib.platforms;
47− linux; # platform-independent
48− license = a.lib.licenses.free; # LaTeX Project Public License
49− };
50− passthru = {
51− updateInfo = {
52− downloadPage = "http://sourceforge.net/projects/disser/files/disser/";
53− };
54− };
55−}) x