trilby icon indicating copy to clipboard operation
trilby copied to clipboard

convert: command not found when building | failed with exit code 127 (aarch64)

Open RusticCraftsman opened this issue 1 year ago • 3 comments

After temporally fixing #22 using the following workaround thanks to @ners:

comment line 5 of modules/profiles/network.nix , disabling network manager

And trying to build the image again:

nix build .#trilby-server-unstable-aarch64-isoImage

i get the following error:

trilby_error that says the following (acording to a image to text ai):

nix build .$trilby-server-unstable-aarch64-isoImage
warning: Git tree '/home/nicksos/Documents/Github/public/trilby' is dirty
error: builder for /nix/store/ylqy42zc7y28sxcis6q859zz3g4ucny8-trilby-grub2-theme.drv' failed with exit code 127: last 1 log lines:
> /build/.attr-012nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90: line 4: convert: command not found 
For full logs, run 'nix log /nix/store/ylqy42zc7y28sxcis6q859zz3g4vcmy8-trilby-grub2-theme.drv'.
error: 1 dependencies of derivation '/nix/store/yg6qd318010pi5kc44n20ap9kc7fi0wb-trilby-server-24.05-aarch64.iso-aarch64-unknown-linux-gnu.drv' failed to build 

this error is referencing this line of code :

convert ${../../../assets/Trilby.png} -geometry x100 $out/logo.png
that is inside modules/overlays/trilby-grub2-theme/default.nix

RusticCraftsman avatar Feb 23 '24 21:02 RusticCraftsman

I have a feeling that that should be fixed by using nativeBuildInputs instead of buildInputs. Can you try that?

vkleen avatar Feb 23 '24 22:02 vkleen

I have a feeling that that should be fixed by using nativeBuildInputs instead of buildInputs. Can you try that?

I'm currently building with that line commented, i'll try this later

RusticCraftsman avatar Feb 23 '24 23:02 RusticCraftsman

I have a feeling that that should be fixed by using nativeBuildInputs instead of buildInputs. Can you try that?

After trying:

building with that line commented

got build error #25 , uncommented that line(going back as it was) and changed buildInputs to nativeBuildInputs . The exact same error as #25 appeared, so i guess your fix worked, thanks for that!

RusticCraftsman avatar Feb 24 '24 00:02 RusticCraftsman