uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
43
pkgs/tools/graphics/directx-shader-compiler/default.nix
Normal file
43
pkgs/tools/graphics/directx-shader-compiler/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, ninja, python3, git }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "directx-shader-compiler";
|
||||
version = "1.6.2112";
|
||||
|
||||
# Put headers in dev, there are lot of them which aren't necessary for
|
||||
# using the compiler binary.
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "microsoft";
|
||||
repo = "DirectXShaderCompiler";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-+oh7oWJCE0CLehnqpE2J9aIfMFbtfLAKwI9ETmCg/TA=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake git ninja python3 ];
|
||||
|
||||
cmakeFlags = [ "-C../cmake/caches/PredefinedParams.cmake" ];
|
||||
|
||||
# The default install target installs heaps of LLVM stuff.
|
||||
#
|
||||
# Upstream issue: https://github.com/microsoft/DirectXShaderCompiler/issues/3276
|
||||
#
|
||||
# The following is based on the CI script:
|
||||
# https://github.com/microsoft/DirectXShaderCompiler/blob/master/appveyor.yml#L63-L66
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/lib $dev/include
|
||||
mv bin/dxc* $out/bin/
|
||||
mv lib/libdxcompiler.so* lib/libdxcompiler.*dylib $out/lib/
|
||||
cp -r $src/include/dxc $dev/include/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A compiler to compile HLSL programs into DXIL and SPIR-V";
|
||||
homepage = "https://github.com/microsoft/DirectXShaderCompiler";
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
license = licenses.ncsa;
|
||||
maintainers = with maintainers; [ expipiplus1 Flakebi ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue