bsc: 3.3.6 -> 3.3.12

This commit is contained in:
Sigmanificient
2025-10-11 19:17:52 +02:00
parent ba9e09cc76
commit a418816bb7

View File

@@ -3,37 +3,33 @@
stdenv, stdenv,
fetchFromGitHub, fetchFromGitHub,
llvmPackages, llvmPackages,
cmake,
nix-update-script, nix-update-script,
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "bsc"; pname = "bsc";
version = "3.3.6"; version = "3.3.12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "IlyaGrebnov"; owner = "IlyaGrebnov";
repo = "libbsc"; repo = "libbsc";
tag = "v${finalAttrs.version}"; tag = "v${finalAttrs.version}";
hash = "sha256-iUFKTDSAg2/57TPvR0nlmfVN2Z6O9kZKIg+BQQKvr/o="; hash = "sha256-3dFwmThnDzbXB6m/rDfbSz4DZAlIsm4gUOT7YwexpKA=";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;
nativeBuildInputs = [ cmake ];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin llvmPackages.openmp; buildInputs = lib.optional stdenv.hostPlatform.isDarwin llvmPackages.openmp;
postPatch = lib.optional (!stdenv.hostPlatform.isx86) '' postPatch = ''
substituteInPlace makefile \ substituteInPlace CMakeLists.txt \
--replace-fail "-mavx2" "" --replace-fail "check_c_compiler_flag(-march=native COMPILER_SUPPORTS_MARCH_NATIVE_C)" "" \
--replace-fail "check_cxx_compiler_flag(-march=native COMPILER_SUPPORTS_MARCH_NATIVE_CXX)" ""
substituteInPlace makefile.cuda \
--replace-fail "-mavx2" ""
''; '';
makeFlags = [
"CC=$(CXX)"
"PREFIX=${placeholder "out"}"
];
passthru.updateScript = nix-update-script { }; passthru.updateScript = nix-update-script { };
meta = { meta = {