Cheatsheet: Difference between revisions
imported>Legendofmiracles m small issues |
imported>Artturin add Using override with nix-build |
||
Line 615: | Line 615: | ||
error: undefined variable 'bar' at /tmp/expression.nix:1:5 | error: undefined variable 'bar' at /tmp/expression.nix:1:5 | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== Using override with nix-build === | |||
using channels | |||
<syntaxhighlight lang="nix"> | |||
nix-build -E 'with (import <nixpkgs>{}); polybar.override { i3Support = true; }' | |||
</syntaxhighlight> | |||
using a local repo | |||
<syntaxhighlight lang="nix"> | |||
nix-build -E 'with (import ./default.nix{}); polybar.override { i3Support = true; }' | |||
</syntaxhighlight> | |||
== See also == | == See also == |