mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
Merge pull request #133191 from Stunkymonkey/intel-graphics-compiler-phases
intel-graphics-compiler: deprecate phases and replace it with runComm…
This commit is contained in:
commit
6ef4f522d6
@ -1,8 +1,8 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
, runCommandLocal
|
||||||
|
|
||||||
, bison
|
, bison
|
||||||
, flex
|
, flex
|
||||||
, llvmPackages_8
|
, llvmPackages_8
|
||||||
@ -46,18 +46,14 @@ stdenv.mkDerivation rec {
|
|||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
# Handholding the braindead build script
|
# Handholding the braindead build script
|
||||||
# We put this in a derivation because the cmake requires an absolute path
|
# cmake requires an absolute path
|
||||||
prebuilds = stdenv.mkDerivation {
|
prebuilds = runCommandLocal "igc-cclang-prebuilds" { } ''
|
||||||
name = "igc-cclang-prebuilds";
|
mkdir $out
|
||||||
phases = [ "installPhase" ];
|
ln -s ${clang}/bin/clang $out/
|
||||||
installPhase = ''
|
ln -s clang $out/clang-${versions.major (getVersion clang)}
|
||||||
mkdir $out
|
ln -s ${opencl-clang}/lib/* $out/
|
||||||
ln -s ${clang}/bin/clang $out/
|
ln -s ${lib.getLib libclang}/lib/clang/${getVersion clang}/include/opencl-c.h $out/
|
||||||
ln -s clang $out/clang-${versions.major (getVersion clang)}
|
'';
|
||||||
ln -s ${opencl-clang}/lib/* $out/
|
|
||||||
ln -s ${lib.getLib libclang}/lib/clang/${getVersion clang}/include/opencl-c.h $out/
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCCLANG_BUILD_PREBUILDS=ON"
|
"-DCCLANG_BUILD_PREBUILDS=ON"
|
||||||
@ -66,10 +62,10 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/intel/intel-graphics-compiler";
|
homepage = "https://github.com/intel/intel-graphics-compiler";
|
||||||
description = "LLVM-based compiler for OpenCL targeting Intel Gen graphics hardware";
|
description = "LLVM-based compiler for OpenCL targeting Intel Gen graphics hardware";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ gloaming ];
|
maintainers = with maintainers; [ gloaming ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user