amd-blis: add patch to make output reproducible

Fixes the datestamt to SOURCE_DATE_EPOCH
This commit is contained in:
Markus Kowalewski
2025-10-01 13:22:17 +02:00
parent 99dad401f1
commit 4ae04e17c9
2 changed files with 18 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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
View File
@@ -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 = [