gtk3: don't multiout demos

This commit is contained in:
worldofpeace 2019-07-21 15:04:45 -04:00
parent 5e9f1bb343
commit 8438e3e67f

View File

@ -154,17 +154,13 @@ stdenv.mkDerivation rec {
done
'';
# Make all demo related things in dev
postFixup = ''
moveToOutput share/icons/hicolor "$dev"
moveToOutput share/applications "$dev"
moveToOutput share/gsettings-schemas "$dev"
# Wrap demos
postFixup = optionalString (!stdenv.isDarwin) ''
demos=(gtk3-demo gtk3-demo-application gtk3-icon-browser gtk3-widget-factory)
for program in ''${demos[@]}; do
wrapProgram $dev/bin/$program \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$dev/share/gsettings-schemas/${pname}-${version}"
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share/gsettings-schemas/${pname}-${version}"
done
'';