nix flakes support #85
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "mwojcik/zynq-rs:flakes_support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hopefully this time I didn't miss any packages/commands.
Would love to get rid of
cargoSha256
in favour ofCargo.lock
for experiments/szl but I don't think I can generate that (cd experiments; cargo generate-lockfile
only updates lockfile for the main repo?).Are we supposed to build FSBL only for ZC706? Could simplify that if that's the case.
Is this a problem?
FSBL is Xilinx software and only supports the ZC706, we didn't port it to any other board.
All boards use its replacement SZL, we only used FSBL for development and debugging.
No, it's not a problem at all. Just explaining why they still refer to CargoSha256.
I thought that somehow SZL is booted after FSBL - now it all makes sense.
I mean, why is cargoLock unable to work for these?
NAC3 also has multiple targets and it works fine there.
Yep, you're right, I got confused by different sha256s. No problem at all.
@ -0,0 +214,4 @@
};
cargoSha256Experiments = "1bvffgr4588bbkjwnhim8rvkjvbnajaiv7hc98b19sr8kb7rcj63";
cargoSha256SZL = "13022ssk6s2fgxmmh5msbx01fzcmk2cj95fjpxcsmfy14k9wd77l";
Still there?
@ -0,0 +268,4 @@
in {
packages.x86_64-linux = allOutputs;
hydraJobs = allOutputs;
You can just use
rec
above and dohydraJobs = packages.x86_64-linux
I believe.@ -0,0 +1,285 @@
{
description = "Bare-metal Rust on Zynq-7000";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-21.11;
NB: artiq-zynq is broken on 21.11, though it is likely fixable easily.
Do nix-pkgs have to match with future artiq-zynq flake?
Probably I would fix it while flakifying artiq-zynq anyway...
It can (should) be overriden in artiq-zynq with
input.follows
. But it should be easy to fix anyway, just a heads-up.@ -0,0 +280,4 @@
llvmPackages_9.clang-unwrapped
mkbootimage ];
};
defaultPackage.x86_64-linux = allTargetCrates.zc706-szl;
I would suggest the multi-board
szl
package here, or even just no default package at all.