Development environment with nix-shell: Difference between revisions

imported>Ericson2314
Tweak examples to be "cross compliant" and add a few notes why.
imported>Stunkymonkey
fix syntax higlighting for nix
Line 103: Line 103:
For packages we use <code>wrapGAppsHook</code> in <code>nativeBuildInputs</code>, however in nix-shell this is not working as expected.
For packages we use <code>wrapGAppsHook</code> in <code>nativeBuildInputs</code>, however in nix-shell this is not working as expected.
To get your application to work in nix-shell you will need to add the following to your <code>mkShell</code> expression:
To get your application to work in nix-shell you will need to add the following to your <code>mkShell</code> expression:
<syntaxHightlight lang=nix>
<syntaxHighlight lang=nix>
mkShell {
mkShell {
   ...
   ...
Line 111: Line 111:
   '';
   '';
}
}
</syntaxHightlight>
</syntaxHighlight>


=== Icons not working ===
=== Icons not working ===
Similar to the Gsettings issue, icons can be added with XDG_DATA_DIRS:
Similar to the Gsettings issue, icons can be added with XDG_DATA_DIRS:
<pre> XDG_DATA_DIRS=...:${hicolor-icon-theme/share:${gnome3.adwaita-icon-theme}/share</pre>
<pre> XDG_DATA_DIRS=...:${hicolor-icon-theme/share:${gnome3.adwaita-icon-theme}/share</pre>