Development environment with nix-shell: Difference between revisions
TYPO |
|||
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>. |