YosysHQ / nextpnr

nextpnr portable FPGA place and route tool
ISC License
1.24k stars 236 forks source link

Support building nextpnr with nix flakes #1296

Open RCoeurjoly opened 4 months ago

RCoeurjoly commented 4 months ago

So far GUI is disabled, because nixpkgs has only qt6, and not qt5.

If enabling the GUI is required, with a little more love it should be doable.

rowanG077 commented 4 months ago

I would like this see the flake replace the shell.nix. Important there are the environment variables that need to be set so cmake can find the deps in the dev shell.

RCoeurjoly commented 4 months ago

I would like this see the flake replace the shell.nix. Important there are the environment variables that need to be set so cmake can find the deps in the dev shell.

I have added a devShell to flake.nix, and the shellHook to it, copied from shell.nix (thanks for the pointer!).

However, when inside the devShell, I am unable to compile nextpnr. I have tried several architectures (all, ice40, ecp5).

All fail.

Maybe leave the devShell as it is, a WIP?