I’m trying to set up a dev environment using flakes so that I can develop cores for the MiSTer FPGA project. The project requires version 17.0.2.602 of Quartus Prime, the Intel (né Altera) FPGA IDE.
Nixpkgs-unstable currently references 23.1std.0.991. Is it possible (and reasonable) to somehow adapt quartus.nix so that I can create a flake that uses v17.0.2.602?
It is possible but unfortunately it will not be as easy as a simple overrideAttrs { ... }. It seems the derivation has hardcoded the version with no practical way to affect it from the outside.
Your simplest solution in my opinion would be to copy the quartus.nix file into your workspace, change the version and hashes to match the one you want, then .override the main quartus-prime-lite package with your package expression instead, like how the derivation does it. This isn’t the most ideal set of steps but it seems that this is the only practical way to extend this package.