Commit graph

8 commits

Author SHA1 Message Date
Artturin eb77c50eb2 hello_world: Fix stat with coreutils(linux)
the development nix shell has coreutils
2025-02-22 22:33:26 +02:00
Artturin 459ed89ce2 Rename rv_formal.cabal to rvFormal
It appears that the convention is to use the package name as the
filename

```
error: path '/nix/store/3bljihq1ighvsr9ghaw5fvflcdapsrff-haskell-project-plan-to-nix-pkgs/.plan.nix/rvFormal.nix' does not exist
```
2025-02-22 22:33:26 +02:00
Artturin 5516da2619 Add flake
`haskell.nix` is quite different from normal nix infra but seems to be
working fine here.

Works with ghc 9.6.6
2025-02-22 22:33:26 +02:00
Artturin eed328e68a Fix shell.nix
```
[nix-shell:~/joyofhardware/RiscV-Formal]$ riscv64-unknown-linux-gnu-gcc
bash: /nix/store/xq4q2vv9ii7z2k2qp82jd180xdb0r4fv-gcc-riscv64-unknown-linux-gnu-14-20241116/bin/riscv64-unknown-linux-gnu-gcc: cannot execute binary file: Exec format error
```

`pkgs.pkgsCross.riscv64` is for running on riscv64
`pkgs.pkgsCross.riscv64.buildPackages` is for running on the build
system and compiling code for riscv64

`nativeBuildInputs` is for packages which run on the build system and
compile code for riscv64

with `__splicedPackages` we can avoid having to specify `buildPackages`
and have the dependency attributes (`nativeBuildInputs`) pick the
`buildHost` version of the package
2025-02-21 17:04:56 +02:00
Yehowshua Immanuel 003a1c8545 works even better now 2025-02-19 18:28:08 -05:00
Yehowshua Immanuel f9248057f9 getting closer... 2025-02-19 09:06:40 -05:00
Yehowshua Immanuel 32932f4816 added basic decoding 2025-02-19 01:21:02 -05:00
Yehowshua Immanuel ef58d5b07e first commit 2025-02-12 23:54:15 -05:00