add scala-spinalhdl
This commit is contained in:
parent
e56d2ad3c8
commit
584dba9ed0
@ -3,6 +3,7 @@ rec {
|
|||||||
yosys = pkgs.callPackage ./eda/yosys.nix {};
|
yosys = pkgs.callPackage ./eda/yosys.nix {};
|
||||||
symbiyosys = pkgs.symbiyosys.override { inherit yosys; };
|
symbiyosys = pkgs.symbiyosys.override { inherit yosys; };
|
||||||
nmigen = pkgs.callPackage ./eda/nmigen.nix { 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; };
|
jtagtap = pkgs.callPackage ./cores/jtagtap.nix { inherit nmigen; };
|
||||||
minerva = pkgs.callPackage ./cores/minerva.nix { inherit nmigen; inherit jtagtap; };
|
minerva = pkgs.callPackage ./cores/minerva.nix { inherit nmigen; inherit jtagtap; };
|
||||||
|
36
eda/scala-spinalhdl.nix
Normal file
36
eda/scala-spinalhdl.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ runCommand, fetchurl, makeWrapper, scala_2_11 }:
|
||||||
|
|
||||||
|
let
|
||||||
|
jars = [
|
||||||
|
(fetchurl {
|
||||||
|
url = http://central.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.jar;
|
||||||
|
sha256 = "108mw2v8ncig29kjvzh8wi76plr01f4x5l3b1929xk5a7vf42snc";
|
||||||
|
})
|
||||||
|
(fetchurl {
|
||||||
|
url = http://central.maven.org/maven2/org/yaml/snakeyaml/1.8/snakeyaml-1.8.jar;
|
||||||
|
sha256 = "1z0ybg8azqanrhqjbr57n6sflm7scfxik99j070f9zk7g6ykcl9g";
|
||||||
|
})
|
||||||
|
(fetchurl {
|
||||||
|
url = https://oss.sonatype.org/content/groups/public/com/github/scopt/scopt_2.11/3.4.0/scopt_2.11-3.4.0.jar;
|
||||||
|
sha256 = "0y9av2rpnaj3z9zg4chfpxgjx3xqqx9bzcv0jr3n9h4v5fqbc52r";
|
||||||
|
})
|
||||||
|
(fetchurl {
|
||||||
|
url = https://oss.sonatype.org/content/groups/public/com/github/spinalhdl/spinalhdl-core_2.11/1.3.2/spinalhdl-core_2.11-1.3.2.jar;
|
||||||
|
sha256 = "0l6156n6b7jdg4sddv1kg26yadypccjaqgb0c2ca4r4m9z6s2ww7";
|
||||||
|
})
|
||||||
|
(fetchurl {
|
||||||
|
url = https://oss.sonatype.org/content/groups/public/com/github/spinalhdl/spinalhdl-lib_2.11/1.3.2/spinalhdl-lib_2.11-1.3.2.jar;
|
||||||
|
sha256 = "0x3ci6ypisq5m62gsf9g01sqh0qhjfayfpl4r3fffx73xpzfq4h2";
|
||||||
|
})
|
||||||
|
(fetchurl {
|
||||||
|
url = https://oss.sonatype.org/content/groups/public/com/github/spinalhdl/spinalhdl-sim_2.11/1.3.2/spinalhdl-sim_2.11-1.3.2.jar;
|
||||||
|
sha256 = "0nvg6phr3rcffkamzrvvl44sd5y4scdy2r3jzk660939vxcz0605";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
fmtJars = builtins.concatStringsSep ":" (builtins.map (x: "${x}") jars);
|
||||||
|
in
|
||||||
|
runCommand "scala-spinalhdl" { nativeBuildInputs = [ makeWrapper ]; }
|
||||||
|
''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
makeWrapper ${scala_2_11}/bin/scala $out/bin/scala-spinalhdl --prefix CLASSPATH : ${fmtJars}
|
||||||
|
''
|
Loading…
Reference in New Issue
Block a user