···254254where they are known to differ. But there are ways to customize the argument:
255255256256 - To choose a different target by name, define
257257- `stdenv.hostPlatform.rustc.config` as that name (a string), and that
257257+ `stdenv.hostPlatform.rust.rustcTarget` as that name (a string), and that
258258 name will be used instead.
259259260260 For example:
···262262 ```nix
263263 import <nixpkgs> {
264264 crossSystem = (import <nixpkgs/lib>).systems.examples.armhf-embedded // {
265265- rustc.config = "thumbv7em-none-eabi";
265265+ rust.rustcTarget = "thumbv7em-none-eabi";
266266 };
267267 }
268268 ```
···274274 ```
275275276276 - To pass a completely custom target, define
277277- `stdenv.hostPlatform.rustc.config` with its name, and
278278- `stdenv.hostPlatform.rustc.platform` with the value. The value will be
277277+ `stdenv.hostPlatform.rust.rustcTarget` with its name, and
278278+ `stdenv.hostPlatform.rust.platform` with the value. The value will be
279279 serialized to JSON in a file called
280280- `${stdenv.hostPlatform.rustc.config}.json`, and the path of that file
280280+ `${stdenv.hostPlatform.rust.rustcTarget}.json`, and the path of that file
281281 will be used instead.
282282283283 For example:
···285285 ```nix
286286 import <nixpkgs> {
287287 crossSystem = (import <nixpkgs/lib>).systems.examples.armhf-embedded // {
288288- rustc.config = "thumb-crazy";
289289- rustc.platform = { foo = ""; bar = ""; };
288288+ rust.rustcTarget = "thumb-crazy";
289289+ rust.platform = { foo = ""; bar = ""; };
290290 };
291291 }
292292 ```
···2233stdenv.mkDerivation rec {
44 pname = "directx-shader-compiler";
55- version = "1.7.2308";
55+ version = "1.8.2405";
6677 # Put headers in dev, there are lot of them which aren't necessary for
88 # using the compiler binary.
···1212 owner = "microsoft";
1313 repo = "DirectXShaderCompiler";
1414 rev = "v${version}";
1515- hash = "sha256-pfdAD+kRpmqW29Y8jn6+X5Ujy/9cIvisYr0tH1PuxsY=";
1515+ hash = "sha256-p1sQcKWSQo0VU1JwB7J0eqT85CzNWxAMqC4HZ95NySg=";
1616 fetchSubmodules = true;
1717 };
1818