Skip to content

Commit

Permalink
Make it a (old) blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Dec 5, 2023
1 parent 3d4a30f commit 44d6ebf
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions en/nix-rapid.md → en/blog/nix-rapid.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
date: 2023-03-01
---

# Rapid Introduction to Nix

The goal of this document is to introduce you to #[[nix]] as quickly as possible while also preparing the motivated learner to dive deeper into [the whole Nix ecosystem][zero-to-nix]. At the end of this introduction, you will be able to create a #[[flakes|flake]] for building a package and providing a developer environment shell.
The goal of this mini-tutorial is to introduce you to #[[nix]] as quickly as possible while also preparing the motivated learner to dive deeper into [the whole Nix ecosystem][zero-to-nix]. At the end of this introduction, you will be able to create a #[[flakes|flake]] for building a package and providing a developer environment shell.

If you are already experienced in [purely functional programming](https://en.wikipedia.org/wiki/Purely_functional_programming), it is highly recommended to read [Nix - taming Unix with functional programming](https://www.tweag.io/blog/2022-07-14-taming-unix-with-nix/) to gain a foundational perspective into Nix being purely functional but in the context of *file system* (as opposed to values stored in memory).

Expand Down Expand Up @@ -138,12 +142,12 @@ The nixpkgs flake has an output called `legacyPackages`, which is indexed by the
Nix commands treat certain outputs as special. These are:
| Output | Nix command | Description |
| ----------- | ----------------- | ---------------------------- |
| `packages` | `nix build` | [[drv]] output |
| `devShells` | `nix develop` | [Development](dev.md) shells |
| `apps` | `nix run` | Runnable applications |
| `checks` | `nix flake check` | Tests and checks |
| Output | Nix command | Description |
| ----------- | ----------------- | ------------------------------- |
| `packages` | `nix build` | [[drv]] output |
| `devShells` | `nix develop` | [Development](../dev.md) shells |
| `apps` | `nix run` | Runnable applications |
| `checks` | `nix flake check` | Tests and checks |
All of these predefined outputs are further indexed by the "system" value.
Expand Down

0 comments on commit 44d6ebf

Please sign in to comment.