File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 359
359
} ;
360
360
361
361
# Assumes it can run Command::new(env::var("CARGO")).arg("locate-project")
362
- # https://github.com/bkchr/proc-macro-crate/blame/master/src/lib.rs#L244
362
+ # https://github.com/bkchr/proc-macro-crate/blame/master/src/lib.rs#L242
363
363
proc-macro-crate = attrs : lib . optionalAttrs ( lib . versionAtLeast attrs . version "2.0" ) {
364
- prePatch = ( attrs . prePatch or "" ) + ''
364
+ postPatch = ( attrs . postPatch or "" ) + ''
365
365
substituteInPlace \
366
366
src/lib.rs \
367
367
--replace-fail \
368
- 'env::var("CARGO").map_err(|_| Error::CargoEnvVariableNotSet)? ' \
369
- '"${ lib . getBin buildPackages . cargo } /bin/cargo"'
368
+ 'env::var("CARGO")' \
369
+ 'Ok::<_, core::convert::Infallible>( "${ lib . getBin buildPackages . cargo } /bin/cargo") '
370
370
'' ;
371
371
} ;
372
372
}
You can’t perform that action at this time.
0 commit comments