Skip to content

Latest commit

 

History

History
79 lines (60 loc) · 1.94 KB

README.md

File metadata and controls

79 lines (60 loc) · 1.94 KB

F# + Nix

built with nix
[.Net] Build & Test [Nix] Build Container

An opinionated F# template and development environment that's powered by Nix.

Development

Devenv

nix develop --impure

or direnv allow, if you have direnv installed.

Justfile

If you type just for a list of commands.

$ 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:

# or just b, if you're lazy
just build

and for running the testing suite:

# or just b, if you're lazy
just test

Nix Build

To build this with Nix:

nix build

Github Actions (+Nix)

I've also pre-configured some Github Actions.

Docker

A container image can also be generated via:

nix build .#dockerImage