Cheatsheet: Difference between revisions

imported>Dywedir
m users.extraUsers -> users.users
imported>Mic92
building static packages go easier!
Line 487: Line 487:
<source lang="bash">
<source lang="bash">
$ nix-build -E 'with (import ./. {}); (curl.override { stdenv = makeStaticLibraries stdenv;}).out'
$ nix-build -E 'with (import ./. {}); (curl.override { stdenv = makeStaticLibraries stdenv;}).out'
</source>
There is also an stdenv adapter that will build static binaries:
<source lang="bash">
$ nix-build '<nixpkgs>' -A pkgsStatic.hello
</source>
</source>