first commit

This commit is contained in:
Thorn Avery 2024-06-29 13:32:35 +12:00
commit 01d83b0d4f

31
README.md Normal file
View file

@ -0,0 +1,31 @@
# Thorn Avery's Haskell Repo
this flake contains the package management infastructure for building my haskell applications and libraries.
all items in the `packages` output will be avaliable to cabal when building, and thus can be included in cabal files as if they existed on hackage.
## adding an entry
first, add the repository containing the item to the `inputs` of the flake. it must have a `.cabal` file in the root directory.
```
.
├── hello-world.cabal
└── src
└── Main.hs
```
```
hello-world = {
url = "git+ssh://gitea@git.p7.co.nz/thornAvery/hello-world.git";
flake = false;
};
```
finally, add an entry to [`./packages.nix`](./packages.nix) containing the attribute path to the input:
```
inputs: [
inputs.hello-world
]
```