On 12 October 2016 at 15:41, Nikolay Amiantov <ab at fmap.me> wrote: > Try adding `glibc.static` to `buildInputs` (I'm not sure if `nix-shell > -p` would do the same thing, but you can try it too). Thank you very much! It worked: $ nix-shell -p gcc glibc.static $ gcc -static foo.c (success) Best regards, Bjørn Forsman