This tool can visualize build and runtime dependencies of Nix derivations.
nix-build --attr grafanix --out-link grafanix
If you don't want to wait, grab the latest release.
./grafanix/bin/grafanix --help # show available options
./grafanix/bin/grafanix # start Grafanix, use <nixpkgs>
After starting Grafanix, open localhost:3000
in your browser.
I suggest using VSCode with the following plugins:
- ghcide
- HTML CSS Support
- Elm Support
Make sure you run it in a shell with all necessary tooling:
nix-shell --command "code"
cd backend
cabal new-build # Build it
cabal new-repl # Start a REPL
cabal new-run grafanix --static-path="../static" # Run it, serve static assets from project directory
cd frontend
./scripts/watch.sh # Rebuild on every change
treefmt