Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.06 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.06 KB

Grafanix

This tool can visualize build and runtime dependencies of Nix derivations.

Building

nix-build --attr grafanix --out-link grafanix

If you don't want to wait, grab the latest release.

Running

./grafanix/bin/grafanix --help # show available options
./grafanix/bin/grafanix        # start Grafanix, use <nixpkgs>

After starting Grafanix, open localhost:3000 in your browser.

Hacking

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"

Backend

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

Frontend

cd frontend

./scripts/watch.sh # Rebuild on every change

Formatting

treefmt