https://github.com/norfairking/haskell-dependency-graph-nix
  
  
     
    https://github.com/norfairking/haskell-dependency-graph-nix
  
        Last synced: 7 months ago 
        JSON representation
    
- Host: GitHub
- URL: https://github.com/norfairking/haskell-dependency-graph-nix
- Owner: NorfairKing
- Created: 2022-12-07T11:05:04.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T07:02:55.000Z (over 1 year ago)
- Last Synced: 2025-03-23T09:22:00.998Z (7 months ago)
- Language: Nix
- Size: 6.84 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          # Haskell Dependency Graph Nix
Produce a dependency graph of Haskell Packages from Nix
## Quick Start
Add this repository as a flake:
``` nix
{
  inputs = {
    haskell-dependency-graph-nix.url = "github:NorfairKing/haskell-dependency-graph-nix";
  };
}
```
Produce a dependency graph:
``` nix
{
  outputs = { self, haskell-dependency-graph-nix }: {
    checks.x86-64_linux.dependency-graph = haskell-dependency-graph-nix.lib.x86-64_linux.makeDependencyGraph {
      packages = [
        "foobar"
        "foobar-gen"
      ];
    };
  };
}
```
## API Reference
### `makeDependencyDot`
Make a Graphviz .dot file with a graph representing the interdependencies of given packages.
```
makeDependencyDot {
  name = "foobar-graph";
  packages = [
    "foobar"
    "foobar-gen"
  ];
};
```
See `./nix/makeDependencyDot`.
### `makeDependencyGraph`
Make a rendered dependency graph using Graphviz.
Example:
```
makeDependencyGraph {
  name = "foobar-graph";
  packages = [
    "foobar"
    "foobar-gen"
  ];
};
```
See `./nix/makeDependencyGraph`.