Getting Started Tutorial
Get Nix
- Docker Image
- Install on your Linux Distro
- Install NixOS (on a VM)
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;
};
}