Development environment with nix-shell: Difference between revisions
imported>Fliiiix m Update ruby version to something recent and make the text match the example |
TYPO |
||
(One intermediate revision by one other user not shown) | |||
Line 195: | Line 195: | ||
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: | ||
< | <syntaxhighlight lang="nix"> | ||
mkShell { | mkShell { | ||
... | ... | ||
buildInputs = [ gtk3 ]; | buildInputs = [ gtk3 ]; | ||
shellHook = '' | shellHook = '' | ||
export XDG_DATA_DIRS=$ | export XDG_DATA_DIRS=$GSETTINGS_SCHEMAS_PATH | ||
''; | ''; | ||
} | } | ||
</ | </syntaxhighlight> | ||
This may also called: <code>$GSETTINGS_SCHEMA'''S'''_PATH</code>. | This may also called: <code>$GSETTINGS_SCHEMA'''S'''_PATH</code>. | ||
Line 210: | Line 210: | ||
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> | ||
[[Category:Development]] | |||
[[Category:nix]] |