librashader: fix building with stable rust (#418382)
This commit is contained in:
@@ -24,11 +24,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-fKYpRvH8zt7GeiaBf1oZHBY4WSCVQzZ0Ca7Q3ek6QE0=";
|
cargoHash = "sha256-fKYpRvH8zt7GeiaBf1oZHBY4WSCVQzZ0Ca7Q3ek6QE0=";
|
||||||
|
|
||||||
RUSTC_BOOTSTRAP = 1;
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
cargo run -p librashader-build-script -- --profile optimized
|
cargo run -p librashader-build-script -- --profile optimized --stable
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@@ -54,7 +52,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
''
|
''
|
||||||
)
|
)
|
||||||
+ ''
|
+ ''
|
||||||
install -m644 librashader.h -t $out/include/librashader
|
install -m644 ../../include/librashader.h -t $out/include/librashader
|
||||||
install -m644 ../../include/librashader_ld.h -t $out/include/librashader
|
install -m644 ../../include/librashader_ld.h -t $out/include/librashader
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user