Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.07 KB

41-nixlings.org

File metadata and controls

51 lines (33 loc) · 1.07 KB

Nixlings

Do you have Haskell experience?

If not, Nix might seem a bit confusing to you!


Get experience reading and writing Nix code, without any packaging

Why focus on basic syntax?


  • Build up familiarity with the language
  • Learn how to solve general problems with Nix
  • Yes, Nix is a programming language

Importantly, examples are not packaging related! The idea is to become familiar with Nix outside of a packaging context, which will make it easier to apply it in a packaging context later!

Repository


https://codeberg.org/kookie/nixlings

Exercise structure


{
  mkGreeting = greeting: towards: "${greeting} ${towards}";

  output = {
    message = # Invoke the above function so it returns "Hello Nixlings";
  };
}

Run the examples with nix eval -f <file> output