Loading pkgs/by-name/po/pocl/package.nix +24 −21 Original line number Diff line number Diff line Loading @@ -41,13 +41,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "pocl"; version = "7.0-unstable-2025-09-30"; version = "7.1"; src = fetchFromGitHub { owner = "pocl"; repo = "pocl"; rev = "f24d07da32bdd639538d3016cad2ab920cd16ce3"; hash = "sha256-D7sMZ2B7Ex840ZhM07nrdnlek0HhI5GkvUNA4k5hsPk="; tag = "v${finalAttrs.version}"; hash = "sha256-bS6vTIjLO7YLs7qYLKW0cYYbEJ/hRS/+IjjAKbkj8ac="; }; postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' Loading @@ -56,17 +56,20 @@ stdenv.mkDerivation (finalAttrs: { "static_cast<size_t>(Dev.getInfo<CL_DEVICE_GLOBAL_MEM_SIZE>())" ''; cmakeFlags = [ cmakeFlags = (lib.mapAttrsToList lib.cmakeBool { # avoid the runtime linker pulling in a different llvm e.g. from graphics drivers (lib.cmakeBool "STATIC_LLVM" true) (lib.cmakeBool "ENABLE_POCL_BUILDING" false) (lib.cmakeBool "POCL_ICD_ABSOLUTE_PATH" true) (lib.cmakeBool "ENABLE_ICD" true) (lib.cmakeBool "ENABLE_REMOTE_CLIENT" true) (lib.cmakeBool "ENABLE_REMOTE_SERVER" true) (lib.cmakeFeature "CLANG" "${clangWrapped}/bin/clang") (lib.cmakeFeature "CLANGXX" "${clangWrapped}/bin/clang++") ] "STATIC_LLVM" = true; "ENABLE_POCL_BUILDING" = false; "POCL_ICD_ABSOLUTE_PATH" = true; "ENABLE_ICD" = true; "ENABLE_REMOTE_CLIENT" = true; "ENABLE_REMOTE_SERVER" = true; }) ++ (lib.mapAttrsToList lib.cmakeFeature { "CLANG" = "${clangWrapped}/bin/clang"; "CLANGXX" = "${clangWrapped}/bin/clang++"; }) # Only x86_64 supports "distro" which allows runtime detection of SSE/AVX ++ lib.optionals stdenv.hostPlatform.isx86_64 [ (lib.cmakeFeature "KERNELLIB_HOST_CPU_VARIANTS" "distro") Loading Loading
pkgs/by-name/po/pocl/package.nix +24 −21 Original line number Diff line number Diff line Loading @@ -41,13 +41,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "pocl"; version = "7.0-unstable-2025-09-30"; version = "7.1"; src = fetchFromGitHub { owner = "pocl"; repo = "pocl"; rev = "f24d07da32bdd639538d3016cad2ab920cd16ce3"; hash = "sha256-D7sMZ2B7Ex840ZhM07nrdnlek0HhI5GkvUNA4k5hsPk="; tag = "v${finalAttrs.version}"; hash = "sha256-bS6vTIjLO7YLs7qYLKW0cYYbEJ/hRS/+IjjAKbkj8ac="; }; postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' Loading @@ -56,17 +56,20 @@ stdenv.mkDerivation (finalAttrs: { "static_cast<size_t>(Dev.getInfo<CL_DEVICE_GLOBAL_MEM_SIZE>())" ''; cmakeFlags = [ cmakeFlags = (lib.mapAttrsToList lib.cmakeBool { # avoid the runtime linker pulling in a different llvm e.g. from graphics drivers (lib.cmakeBool "STATIC_LLVM" true) (lib.cmakeBool "ENABLE_POCL_BUILDING" false) (lib.cmakeBool "POCL_ICD_ABSOLUTE_PATH" true) (lib.cmakeBool "ENABLE_ICD" true) (lib.cmakeBool "ENABLE_REMOTE_CLIENT" true) (lib.cmakeBool "ENABLE_REMOTE_SERVER" true) (lib.cmakeFeature "CLANG" "${clangWrapped}/bin/clang") (lib.cmakeFeature "CLANGXX" "${clangWrapped}/bin/clang++") ] "STATIC_LLVM" = true; "ENABLE_POCL_BUILDING" = false; "POCL_ICD_ABSOLUTE_PATH" = true; "ENABLE_ICD" = true; "ENABLE_REMOTE_CLIENT" = true; "ENABLE_REMOTE_SERVER" = true; }) ++ (lib.mapAttrsToList lib.cmakeFeature { "CLANG" = "${clangWrapped}/bin/clang"; "CLANGXX" = "${clangWrapped}/bin/clang++"; }) # Only x86_64 supports "distro" which allows runtime detection of SSE/AVX ++ lib.optionals stdenv.hostPlatform.isx86_64 [ (lib.cmakeFeature "KERNELLIB_HOST_CPU_VARIANTS" "distro") Loading