Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/norfairking/haskell-dependency-graph-nix
https://github.com/norfairking/haskell-dependency-graph-nix
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/norfairking/haskell-dependency-graph-nix
- Owner: NorfairKing
- Created: 2022-12-07T11:05:04.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T07:02:55.000Z (9 months ago)
- Last Synced: 2024-05-01T12:37:40.821Z (8 months ago)
- Language: Nix
- Size: 6.84 KB
- Stars: 6
- Watchers: 3
- 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`.