mirror of
https://github.com/icewind1991/cynthion-flake.git
synced 2026-06-03 22:34:06 +02:00
add apollo firmware to cynthion package
This commit is contained in:
parent
19838d3e06
commit
10c149f513
7 changed files with 196 additions and 97 deletions
39
pkgs/cynthion/gateware.nix
Normal file
39
pkgs/cynthion/gateware.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
cynthion-unwrapped,
|
||||
zsh,
|
||||
yosys,
|
||||
nextpnr,
|
||||
trellis,
|
||||
...
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "cynthion-gateware";
|
||||
inherit (cynthion-unwrapped) version src;
|
||||
dontFixup = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cynthion-unwrapped
|
||||
yosys
|
||||
nextpnr
|
||||
trellis
|
||||
zsh
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
cd cynthion/python
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
make -j $NIX_BUILD_CORES SHELL=zsh bitstreams
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share
|
||||
cp -r assets $out/share
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue