default.nix.md

default.nix

NIX_PATHThe Nix search path supplies `<nixpkgs>`.Project filesA file in the example project.
with import <nixpkgs> {};
stdenv.mkDerivation {
  name = "basic-package";
  src = ./.; # Local source
  buildPhase = "gcc main.c -o myapp";
  installPhase = "mkdir -p $out/bin; cp myapp $out/bin/";
}

Share your thoughts