Loading pkgs/by-name/am/amd-blis/build-date.patch 0 → 100644 +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)" } pkgs/by-name/am/amd-blis/package.nix +12 −7 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ # Target architecture. "amdzen" compiles kernels for all Zen # generations. To build kernels for specific Zen generations, # use "zen", "zen2", "zen3", or "zen4". # use "zen", "zen2", "zen3", "zen4", or "zen5". withArchitecture ? "amdzen", # Enable OpenMP-based threading. Loading @@ -22,17 +22,22 @@ let blasIntSize = if blas64 then "64" else "32"; in stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: { pname = "amd-blis"; version = "5.1"; src = fetchFromGitHub { owner = "amd"; repo = "blis"; rev = version; rev = finalAttrs.version; hash = "sha256-hqb/Q1CBqtC4AXqHNd7voewGUD675hJ9IwvP3Mn9b+M="; }; patches = [ # Set the date stamp to $SOURCE_DATE_EPOCH ./build-date.patch ]; inherit blas64; nativeBuildInputs = [ Loading Loading @@ -66,11 +71,11 @@ stdenv.mkDerivation rec { ln -s $out/lib/libcblas.so.3 $out/lib/libcblas.so ''; meta = with lib; { meta = { description = "BLAS-compatible library optimized for AMD CPUs"; homepage = "https://developer.amd.com/amd-aocl/blas-library/"; license = licenses.bsd3; maintainers = [ maintainers.markuskowa ]; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.markuskowa ]; platforms = [ "x86_64-linux" ]; }; } }) Loading
pkgs/by-name/am/amd-blis/build-date.patch 0 → 100644 +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)" }
pkgs/by-name/am/amd-blis/package.nix +12 −7 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ # Target architecture. "amdzen" compiles kernels for all Zen # generations. To build kernels for specific Zen generations, # use "zen", "zen2", "zen3", or "zen4". # use "zen", "zen2", "zen3", "zen4", or "zen5". withArchitecture ? "amdzen", # Enable OpenMP-based threading. Loading @@ -22,17 +22,22 @@ let blasIntSize = if blas64 then "64" else "32"; in stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: { pname = "amd-blis"; version = "5.1"; src = fetchFromGitHub { owner = "amd"; repo = "blis"; rev = version; rev = finalAttrs.version; hash = "sha256-hqb/Q1CBqtC4AXqHNd7voewGUD675hJ9IwvP3Mn9b+M="; }; patches = [ # Set the date stamp to $SOURCE_DATE_EPOCH ./build-date.patch ]; inherit blas64; nativeBuildInputs = [ Loading Loading @@ -66,11 +71,11 @@ stdenv.mkDerivation rec { ln -s $out/lib/libcblas.so.3 $out/lib/libcblas.so ''; meta = with lib; { meta = { description = "BLAS-compatible library optimized for AMD CPUs"; homepage = "https://developer.amd.com/amd-aocl/blas-library/"; license = licenses.bsd3; maintainers = [ maintainers.markuskowa ]; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.markuskowa ]; platforms = [ "x86_64-linux" ]; }; } })