File tree 3 files changed +22
-5
lines changed
3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 1
1
_ : {
2
2
perSystem =
3
- { crane , pkgs , ... } :
3
+ { crane , ... } :
4
4
{
5
- packages = crane . buildWorkspaceMember "lib/embed-commit/verifier" {
6
- # extraNativeBuildInputs = [ pkgs.cmake ];
7
- } ;
5
+ packages = crane . buildWorkspaceMember "lib/embed-commit/verifier" { } ;
8
6
} ;
9
7
}
Original file line number Diff line number Diff line change 222
222
# installPhase to be passed to the cargo build derivation.
223
223
cargoBuildInstallPhase ? null ,
224
224
225
+ # standard postBuild phase.
226
+ postBuild ? null ,
227
+ # standard postInstall phase.
228
+ postInstall ? null ,
229
+
225
230
# extra environment variables to pass to the derivation.
226
231
extraEnv ? { } ,
227
232
# extra environment variables to pass to the derivation, only for crane.buildPackage.
412
417
// ( lib . optionalAttrs ( cargoBuildInstallPhase != null ) {
413
418
installPhaseCommand = cargoBuildInstallPhase ;
414
419
} )
420
+ // ( lib . optionalAttrs ( postBuild != null ) {
421
+ inherit postBuild ;
422
+ } )
423
+ // ( lib . optionalAttrs ( postInstall != null ) {
424
+ inherit postInstall ;
425
+ } )
415
426
// ( lib . optionalAttrs ( cargoBuildCheckPhase != null ) {
416
427
checkPhase = cargoBuildCheckPhase ;
417
428
} )
Original file line number Diff line number Diff line change 34
34
pkgs . symlinkJoin {
35
35
name = "voyager-modules-plugins" ;
36
36
paths = pkgs . lib . mapAttrsToList ( _ : path : if release then path . release else path ) (
37
- builtins . foldl' ( acc : p : acc // ( crane . buildWorkspaceMember p { } ) ) { } voy-modules-list
37
+ builtins . foldl' (
38
+ acc : p :
39
+ acc
40
+ // ( crane . buildWorkspaceMember p {
41
+ postInstall = ''
42
+ strip $out/bin/*
43
+ '' ;
44
+ } )
45
+ ) { } voy-modules-list
38
46
) ;
39
47
postBuild = ''
40
48
rm $out/lib -r
You can’t perform that action at this time.
0 commit comments