Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtrsk/fsharp-nix
An opinionated F# template and development environment that's powered by Nix and just
https://github.com/mtrsk/fsharp-nix
devops fsharp functional-programming github-actions justfile nix nix-flakes
Last synced: 3 months ago
JSON representation
An opinionated F# template and development environment that's powered by Nix and just
- Host: GitHub
- URL: https://github.com/mtrsk/fsharp-nix
- Owner: mtrsk
- License: bsd-3-clause
- Created: 2024-09-14T20:07:57.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-15T20:45:11.000Z (4 months ago)
- Last Synced: 2024-09-30T06:21:57.585Z (3 months ago)
- Topics: devops, fsharp, functional-programming, github-actions, justfile, nix, nix-flakes
- Language: Nix
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# F# + Nix
[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)
[![[.Net] Build & Test](https://github.com/mtrsk/fsharp-nix/actions/workflows/build.yml/badge.svg)](https://github.com/mtrsk/fsharp-nix/actions/workflows/build.yml)
[![[Nix] Build Container](https://github.com/mtrsk/fsharp-nix/actions/workflows/build-container.yml/badge.svg)](https://github.com/mtrsk/fsharp-nix/actions/workflows/build-container.yml)An opinionated F# template and development environment that's powered by Nix.
- [F# + Nix](#f--nix)
- [Development](#development)
- [Devenv](#devenv)
- [Justfile](#justfile)
- [Nix Build](#nix-build)
- [Github Actions (+Nix)](#github-actions-nix)
- [Docker](#docker)## Development
### Devenv
```shell
nix develop --impure
```
or `direnv allow`, if you have [direnv](https://github.com/direnv/direnv) installed.#### Justfile
If you type `just` for a list of commands.
```shell
$ just
PROJECT: Sample - RELEASE:
just --list
Available recipes:
build # Builds the project
b # alias for `build`
build-nix # Builds the project (with Nix)
bnix # alias for `build-nix`
default # Lists all availiable targets
delete # Deletes a release
gen-deps # Generates nix dependencies for deps.nix
gd # alias for `gen-deps`
pack # Packages current tag as a .Net release
push # Pushes release to NUGET
test # Runs testing suite
t # alias for `test`
```
to build this project, you can run:```shell
# or just b, if you're lazy
just build
```
and for running the testing suite:```shell
# or just b, if you're lazy
just test
```### Nix Build
To build this with Nix:
```shell
nix build
```### Github Actions (+Nix)
I've also pre-configured some [Github Actions](https://github.com/mtrsk/fsharp-nix/actions).
### Docker
A container image can also be generated via:
```shell
nix build .#dockerImage
```