3
0
Fork 0
forked from mirrors/nixpkgs

Make most of Ruby Gem builds repeatable

This commit is contained in:
Evgeny Egorochkin 2013-06-21 18:18:29 +03:00
parent 467608f614
commit 76fbbb73c6
3 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,13 @@
diff -r -u orig/lib/rdoc/generator/template/darkfish/filepage.rhtml new/lib/rdoc/generator/template/darkfish/filepage.rhtml
--- orig/lib/rdoc/generator/template/darkfish/filepage.rhtml
+++ new/lib/rdoc/generator/template/darkfish/filepage.rhtml
@@ -88,9 +88,6 @@
<body class="file file-popup">
<div id="metadata">
<dl>
- <dt class="modified-date">Last Modified</dt>
- <dd class="modified-date"><%= file.last_modified %></dd>
-
<% if file.requires %>
<dt class="requires">Requires</dt>
<dd class="requires">

View file

@ -39,6 +39,10 @@ let
[[ -e "$out/bin/$(basename $prog)" ]]
done
# looks like useless files which break build repeatability and consume space
rm $out/${ruby.gemPath}/doc/*/*/created.rid || true
rm $out/${ruby.gemPath}/gems/*/ext/*/mkmf.log || true
runHook postInstall
'';

View file

@ -38,7 +38,9 @@ stdenv.mkDerivation rec {
++ (op (!cursesSupport && stdenv.isDarwin) readline);
enableParallelBuilding = true;
patches = [ ./ruby19-parallel-install.patch ];
patches = [ ./ruby19-parallel-install.patch
./bitperfect-rdoc.patch
];
configureFlags = [ "--enable-shared" "--enable-pthread" ]
# on darwin, we have /usr/include/tk.h -- so the configure script detects