lol

Make most of Ruby Gem builds repeatable

+20 -1
+13
pkgs/development/interpreters/ruby/bitperfect-rdoc.patch
··· 1 + diff -r -u orig/lib/rdoc/generator/template/darkfish/filepage.rhtml new/lib/rdoc/generator/template/darkfish/filepage.rhtml 2 + --- orig/lib/rdoc/generator/template/darkfish/filepage.rhtml 3 + +++ new/lib/rdoc/generator/template/darkfish/filepage.rhtml 4 + @@ -88,9 +88,6 @@ 5 + <body class="file file-popup"> 6 + <div id="metadata"> 7 + <dl> 8 + - <dt class="modified-date">Last Modified</dt> 9 + - <dd class="modified-date"><%= file.last_modified %></dd> 10 + - 11 + <% if file.requires %> 12 + <dt class="requires">Requires</dt> 13 + <dd class="requires">
+4
pkgs/development/interpreters/ruby/gem.nix
··· 39 39 [[ -e "$out/bin/$(basename $prog)" ]] 40 40 done 41 41 42 + # looks like useless files which break build repeatability and consume space 43 + rm $out/${ruby.gemPath}/doc/*/*/created.rid || true 44 + rm $out/${ruby.gemPath}/gems/*/ext/*/mkmf.log || true 45 + 42 46 runHook postInstall 43 47 ''; 44 48
+3 -1
pkgs/development/interpreters/ruby/ruby-19.nix
··· 38 38 ++ (op (!cursesSupport && stdenv.isDarwin) readline); 39 39 40 40 enableParallelBuilding = true; 41 - patches = [ ./ruby19-parallel-install.patch ]; 41 + patches = [ ./ruby19-parallel-install.patch 42 + ./bitperfect-rdoc.patch 43 + ]; 42 44 43 45 configureFlags = [ "--enable-shared" "--enable-pthread" ] 44 46 # on darwin, we have /usr/include/tk.h -- so the configure script detects