default.nix.md

default.nix

NIX_PATHThe legacy Nix search path supplies `<nixpkgs>`. Modern flakes do not use this lookup.Project filesNearby files from the example project are mounted, so relative paths and imports are real.
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