Skip to content

Gau-thier/gsebil08.github.io

Repository files navigation

Using Nix

Nix

Nix is a package manager that goes beyond traditional ones (like Apt, NPM, Brew, etc.) as it allows:

  • full reproducibility (the same input guarantee to give exactly the same output)
  • "local" packages, meaning you don't need to install globally
  • describe in a Nix file everything you need to build or run an application, and Nix configures everything locally:
    • language dependencies like JDK 14 or GHC 8.10.7
    • build systems like Maven or Stack
    • system dependencies like Zlib or PostgreSQL
    • environment variables
    • etc.

You can find a high-level explanation of the different Nix files in my Nix article

Run the project

# Build the `site.hs` module
$ stack build
# Generate the blog
$ stack exec site build
# Run the blog locally (localhost:8000) and generate it at each change
$ stack exec site watch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published