Make most of Ruby Gem builds repeatable
This commit is contained in:
parent
467608f614
commit
76fbbb73c6
|
@ -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">
|
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue