Jump to content

Overlays: Difference between revisions

500 bytes added ,  10 August 2020
example of .override with a flag
imported>Symphorien
(example of overriding a scope)
imported>Symphorien
(example of .override with a flag)
Line 142: Line 142:
     ];
     ];
   });
   });
}
</syntaxhighlight>
=== Compilation options ===
Some packages provide compilation options. Those are not easily disoverable; to find them you need to have a look at the source. For example, with <code>nix edit -f "<nixpkgs>" pass</code> one can see that pass can be compiled with or without dependencies on X11 with the <code>x11Support</code> argument. Here is how you can remove X11 dependencies:
<syntaxhighlight lang="nix">
self: super:
{
  pass = super.pass.override { x11Support = false; };
}
}
</syntaxhighlight>
</syntaxhighlight>
Anonymous user