···254where they are known to differ. But there are ways to customize the argument:
255256 - To choose a different target by name, define
257- `stdenv.hostPlatform.rustc.config` as that name (a string), and that
258 name will be used instead.
259260 For example:
···262 ```nix
263 import <nixpkgs> {
264 crossSystem = (import <nixpkgs/lib>).systems.examples.armhf-embedded // {
265- rustc.config = "thumbv7em-none-eabi";
266 };
267 }
268 ```
···274 ```
275276 - To pass a completely custom target, define
277- `stdenv.hostPlatform.rustc.config` with its name, and
278- `stdenv.hostPlatform.rustc.platform` with the value. The value will be
279 serialized to JSON in a file called
280- `${stdenv.hostPlatform.rustc.config}.json`, and the path of that file
281 will be used instead.
282283 For example:
···285 ```nix
286 import <nixpkgs> {
287 crossSystem = (import <nixpkgs/lib>).systems.examples.armhf-embedded // {
288- rustc.config = "thumb-crazy";
289- rustc.platform = { foo = ""; bar = ""; };
290 };
291 }
292 ```
···254where they are known to differ. But there are ways to customize the argument:
255256 - To choose a different target by name, define
257+ `stdenv.hostPlatform.rust.rustcTarget` as that name (a string), and that
258 name will be used instead.
259260 For example:
···262 ```nix
263 import <nixpkgs> {
264 crossSystem = (import <nixpkgs/lib>).systems.examples.armhf-embedded // {
265+ rust.rustcTarget = "thumbv7em-none-eabi";
266 };
267 }
268 ```
···274 ```
275276 - To pass a completely custom target, define
277+ `stdenv.hostPlatform.rust.rustcTarget` with its name, and
278+ `stdenv.hostPlatform.rust.platform` with the value. The value will be
279 serialized to JSON in a file called
280+ `${stdenv.hostPlatform.rust.rustcTarget}.json`, and the path of that file
281 will be used instead.
282283 For example:
···285 ```nix
286 import <nixpkgs> {
287 crossSystem = (import <nixpkgs/lib>).systems.examples.armhf-embedded // {
288+ rust.rustcTarget = "thumb-crazy";
289+ rust.platform = { foo = ""; bar = ""; };
290 };
291 }
292 ```
···23stdenv.mkDerivation rec {
4 pname = "directx-shader-compiler";
5- version = "1.7.2308";
67 # Put headers in dev, there are lot of them which aren't necessary for
8 # using the compiler binary.
···12 owner = "microsoft";
13 repo = "DirectXShaderCompiler";
14 rev = "v${version}";
15- hash = "sha256-pfdAD+kRpmqW29Y8jn6+X5Ujy/9cIvisYr0tH1PuxsY=";
16 fetchSubmodules = true;
17 };
18
···23stdenv.mkDerivation rec {
4 pname = "directx-shader-compiler";
5+ version = "1.8.2405";
67 # Put headers in dev, there are lot of them which aren't necessary for
8 # using the compiler binary.
···12 owner = "microsoft";
13 repo = "DirectXShaderCompiler";
14 rev = "v${version}";
15+ hash = "sha256-p1sQcKWSQo0VU1JwB7J0eqT85CzNWxAMqC4HZ95NySg=";
16 fetchSubmodules = true;
17 };
18