@@ -11,8 +11,17 @@ stdenv.mkDerivation rec {
1111 owner = "Cyan4973";
1212 };
1313
14+ patches = [ ./install-on-freebsd.patch ] ;
15+
1416 buildInputs = stdenv.lib.optional doCheck valgrind;
1517
18+ # An ever-changing __DATE__ isn't very reproducible, so we must override it.
19+ # But rather than displaying "()" or 1970, let --version show useful info:
20+ NIX_CFLAGS_COMPILE = [
21+ ''-D__DATE__="${stdenv.cc.cc.name}"''
22+ "-Wno-builtin-macro-redefined"
23+ ];
24+
1625 enableParallelBuilding = true;
1726
1827 makeFlags = [ "PREFIX=$(out)" ];
@@ -20,8 +29,6 @@ stdenv.mkDerivation rec {
2029 doCheck = false; # tests take a very long time
2130 checkTarget = "test";
2231
23− patches = [ ./install-on-freebsd.patch ] ;
24−
2532 meta = with stdenv.lib; {
2633 description = "Extremely fast compression algorithm";
2734 longDescription = ''