forked from Yehowshua/RiscV-Formal
Compare commits
2 commits
6c97113835
...
f9a6acd4b2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f9a6acd4b2 | ||
![]() |
d8e6e6daa2 |
|
@ -24,7 +24,6 @@
|
||||||
qemu,
|
qemu,
|
||||||
}:
|
}:
|
||||||
haskell-nix.hix.project {
|
haskell-nix.hix.project {
|
||||||
compiler-nix-name = "ghc966";
|
|
||||||
src = builtins.path {
|
src = builtins.path {
|
||||||
path = ./.;
|
path = ./.;
|
||||||
name = "riscv-formal-source";
|
name = "riscv-formal-source";
|
||||||
|
@ -37,6 +36,7 @@
|
||||||
tools = {
|
tools = {
|
||||||
cabal = { };
|
cabal = { };
|
||||||
hlint = { };
|
hlint = { };
|
||||||
|
haskell-language-server = { };
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
qemu
|
qemu
|
||||||
|
|
16
shell.nix
Normal file
16
shell.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
|
let
|
||||||
|
riscv64-linux = pkgs.pkgsCross.riscv64.__splicedPackages;
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
nativeBuildInputs = [
|
||||||
|
riscv64-linux.gcc
|
||||||
|
riscv64-linux.binutils
|
||||||
|
riscv64-linux.glibc
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
echo "RISC-V Linux cross-compilation environment initialized!"
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue