reorganize
parent
63664ab959
commit
a203307108
@ -1,8 +1,28 @@
|
||||
{ pkgs }:
|
||||
let
|
||||
hx = import ./derivations.nix { inherit pkgs; };
|
||||
in
|
||||
hx // {
|
||||
symbiflow = import ./eda/symbiflow.nix { inherit pkgs; yosys = hx.yosys; };
|
||||
rec {
|
||||
drvs = rec {
|
||||
yosys = pkgs.callPackage ./eda/yosys.nix {};
|
||||
symbiyosys = pkgs.symbiyosys.override { inherit yosys; };
|
||||
nmigen = pkgs.callPackage ./eda/nmigen.nix { inherit yosys; };
|
||||
scala-spinalhdl = pkgs.callPackage ./eda/scala-spinalhdl.nix {};
|
||||
|
||||
jtagtap = pkgs.callPackage ./cores/jtagtap.nix { inherit nmigen; };
|
||||
minerva = pkgs.callPackage ./cores/minerva.nix { inherit nmigen; inherit jtagtap; };
|
||||
vexriscv-small = pkgs.callPackage ./cores/vexriscv.nix {
|
||||
inherit scala-spinalhdl;
|
||||
name = "vexriscv-small";
|
||||
scalaToRun = "vexriscv.demo.GenSmallAndProductive";
|
||||
};
|
||||
|
||||
heavycomps = pkgs.callPackage ./heavycomps.nix { inherit nmigen; };
|
||||
|
||||
binutils-riscv = pkgs.callPackage ./compilers/binutils.nix { platform = "riscv32"; };
|
||||
rust-riscv32imc-crates = pkgs.callPackage ./compilers/rust-riscv32imc-crates.nix { };
|
||||
|
||||
helloworld = pkgs.callPackage ./firmware { inherit rust-riscv32imc-crates binutils-riscv; };
|
||||
};
|
||||
lib = {
|
||||
symbiflow = import ./eda/symbiflow.nix { inherit pkgs; inherit (drvs) yosys; };
|
||||
vivado = import ./eda/vivado.nix { inherit pkgs; };
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -1,22 +0,0 @@
|
||||
{ pkgs }:
|
||||
rec {
|
||||
yosys = pkgs.callPackage ./eda/yosys.nix {};
|
||||
symbiyosys = pkgs.symbiyosys.override { inherit yosys; };
|
||||
nmigen = pkgs.callPackage ./eda/nmigen.nix { inherit yosys; };
|
||||
scala-spinalhdl = pkgs.callPackage ./eda/scala-spinalhdl.nix {};
|
||||
|
||||
jtagtap = pkgs.callPackage ./cores/jtagtap.nix { inherit nmigen; };
|
||||
minerva = pkgs.callPackage ./cores/minerva.nix { inherit nmigen; inherit jtagtap; };
|
||||
vexriscv-small = pkgs.callPackage ./cores/vexriscv.nix {
|
||||
inherit scala-spinalhdl;
|
||||
name = "vexriscv-small";
|
||||
scalaToRun = "vexriscv.demo.GenSmallAndProductive";
|
||||
};
|
||||
|
||||
heavycomps = pkgs.callPackage ./heavycomps.nix { inherit nmigen; };
|
||||
|
||||
binutils-riscv = pkgs.callPackage ./compilers/binutils.nix { platform = "riscv32"; };
|
||||
rust-riscv32imc-crates = pkgs.callPackage ./compilers/rust-riscv32imc-crates.nix { };
|
||||
|
||||
helloworld = pkgs.callPackage ./firmware { inherit rust-riscv32imc-crates binutils-riscv; };
|
||||
}
|
@ -1,13 +1,13 @@
|
||||
{ }:
|
||||
let
|
||||
pkgs = import <nixpkgs> { overlays = [ (import ./overlay.nix) ]; };
|
||||
derivations = import ./derivations.nix { inherit pkgs; };
|
||||
jobs = derivations // {
|
||||
hx = import ./default.nix { inherit pkgs; };
|
||||
jobs = hx.drvs // {
|
||||
inherit (pkgs) llvm_7 rustc cargo cargo-vendor;
|
||||
|
||||
helloworld_ecp5 = import ./examples/helloworld_ecp5.nix { inherit pkgs; };
|
||||
helloworld_kintex7 = import ./examples/helloworld_kintex7.nix { inherit pkgs; };
|
||||
simplesoc_ecp5 = import ./examples/simplesoc_ecp5.nix { inherit pkgs; };
|
||||
helloworld_ecp5 = import ./examples/helloworld_ecp5.nix { inherit pkgs hx; };
|
||||
helloworld_kintex7 = import ./examples/helloworld_kintex7.nix { inherit pkgs hx; };
|
||||
simplesoc_ecp5 = import ./examples/simplesoc_ecp5.nix { inherit pkgs hx; };
|
||||
};
|
||||
in
|
||||
builtins.mapAttrs (name: value: pkgs.lib.hydraJob value) jobs
|
||||
|
Loading…
Reference in New Issue