rocmPackages: use CMake 3.9.2 when building clr

Signed-off-by: Gavin Zhao <git@gzgz.dev>
This commit is contained in:
Gavin Zhao 2024-04-23 16:24:48 -04:00
parent 6d7edef8d2
commit da7ab26875
No known key found for this signature in database
GPG Key ID: 574EFE0659B5B1CF
2 changed files with 24 additions and 2 deletions

View File

@ -2,6 +2,7 @@
, stdenv
, callPackage
, fetchFromGitHub
, fetchurl
, rocmUpdateScript
, makeWrapper
, cmake
@ -33,6 +34,16 @@ let
"--set HSA_PATH ${rocm-runtime}"
"--set ROCM_PATH $out"
];
# https://github.com/NixOS/nixpkgs/issues/305641
# Not needed when 3.29.2 is in unstable
cmake' = cmake.overrideAttrs(old: rec {
version = "3.29.2";
src = fetchurl {
url = "https://cmake.org/files/v${lib.versions.majorMinor version}/cmake-${version}.tar.gz";
hash = "sha256-NttLaSaqt0G6bksuotmckZMiITIwi03IJNQSPLcwNS4=";
};
});
in stdenv.mkDerivation (finalAttrs: {
pname = "clr";
version = "5.7.1";
@ -51,7 +62,7 @@ in stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
makeWrapper
cmake
cmake'
perl
python3Packages.python
python3Packages.cppheaderparser

View File

@ -3,6 +3,7 @@
, callPackage
, fetchFromGitHub
, fetchpatch
, fetchurl
, rocmUpdateScript
, makeWrapper
, cmake
@ -34,6 +35,16 @@ let
"--set HSA_PATH ${rocm-runtime}"
"--set ROCM_PATH $out"
];
# https://github.com/NixOS/nixpkgs/issues/305641
# Not needed when 3.29.2 is in unstable
cmake' = cmake.overrideAttrs(old: rec {
version = "3.29.2";
src = fetchurl {
url = "https://cmake.org/files/v${lib.versions.majorMinor version}/cmake-${version}.tar.gz";
hash = "sha256-NttLaSaqt0G6bksuotmckZMiITIwi03IJNQSPLcwNS4=";
};
});
in stdenv.mkDerivation (finalAttrs: {
pname = "clr";
version = "6.0.2";
@ -52,7 +63,7 @@ in stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
makeWrapper
cmake
cmake'
perl
python3Packages.python
python3Packages.cppheaderparser