rocmPackages: use CMake 3.9.2 when building clr
Signed-off-by: Gavin Zhao <git@gzgz.dev>
This commit is contained in:
parent
6d7edef8d2
commit
da7ab26875
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user