amd-blis: add patch to make output reproducible
Fixes the datestamt to SOURCE_DATE_EPOCH
This commit is contained in:
@@ -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)"
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user