Compare commits

..

2 commits

Author SHA1 Message Date
Artturin f9a6acd4b2 Remove stack.yaml
Seems unneeded

```
trace: haskell-nix.project : both 'stack.yaml' and 'cabal.project' files exist.  Using 'cabal.project'. set 'projectFileName = "stack.yaml";' to override this.'
```
2025-02-22 22:15:33 +02:00
Artturin d8e6e6daa2 Add flake
`haskell.nix` is quite different from normal nix infra but seems to be
working fine here.
2025-02-22 22:13:14 +02:00
2 changed files with 17 additions and 1 deletions

View file

@ -24,7 +24,6 @@
qemu,
}:
haskell-nix.hix.project {
compiler-nix-name = "ghc966";
src = builtins.path {
path = ./.;
name = "riscv-formal-source";
@ -37,6 +36,7 @@
tools = {
cabal = { };
hlint = { };
haskell-language-server = { };
};
nativeBuildInputs = [
qemu

16
shell.nix Normal file
View 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!"
'';
}