Getting Started Tutorial

Get Nix

Installing a program

Developing Hello World

C

- Create a hello.c file with the following contents:

#include <stdio.h>

int main(int argc, char* argv[]) {
  printf("Hello World!");
  return 0;
}

And a nix expression file with the following contents:

with import <nixpkgs> {};
{
  hello = stdenv.mkDerivation {
    name = "hello";
    src = ./hello.c;
  };
}

Javascript

Ruby

Go

Rust

Managing a virtual machine