Commit 4ae04e17 authored by Markus Kowalewski's avatar Markus Kowalewski
Browse files

amd-blis: add patch to make output reproducible

Fixes the datestamt to SOURCE_DATE_EPOCH
parent 99dad401
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
diff --git a/configure b/configure
index d96114619..119040151 100755
--- a/configure
+++ b/configure
@@ -1913,7 +1913,7 @@ set_default_version()
 	echo "${script_name}: determining default version string."

 	# Use what's in the version file as-is.
-	version="AOCL-BLAS $(cat "${version_file}") Build $(date +%Y%m%d)"
+	version="AOCL-BLAS $(cat "${version_file}") Build $(date -d "@$SOURCE_DATE_EPOCH" +%Y%m%d)"
 }

+5 −0
Original line number Diff line number Diff line
@@ -33,6 +33,11 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-hqb/Q1CBqtC4AXqHNd7voewGUD675hJ9IwvP3Mn9b+M=";
  };

  patches = [
    # Set the date stamp to $SOURCE_DATE_EPOCH
    ./build-date.patch
  ];

  inherit blas64;

  nativeBuildInputs = [