Jump to content

Cheatsheet: Difference between revisions

142 bytes added ,  14 January 2019
building static packages go easier!
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>


Anonymous user