chore: add Quartus Prime Lite toolchain via nix flake in devbox

This commit is contained in:
randogoth 2026-10-25 12:09:42 +02:00
parent d34f4c69e1
commit 3ee8a5c3db
5 changed files with 54 additions and 2 deletions

27
nix/flake.lock generated Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1792773339,
"narHash": "sha256-rZLrzrC6i+jnTAlvPZHogKDulY7WWDEv9hJeHieO7Zw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3ec636362e1816bc2f0888fa0fa2c69f1bc9e504",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

21
nix/flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
description = "STRIX FPGA toolchain";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }:
let
# Quartus is unfree (free of charge, proprietary) and only built for x86_64-linux.
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
in
{
# Only the Vidor's FPGA family; Questa is dropped in favour of open-source simulators.
packages.x86_64-linux.quartus = pkgs.quartus-prime-lite.override {
supportedDevices = [ "Cyclone 10 LP" ];
withQuesta = false;
};
};
}