monorepo/otg/gtk/override.nix

18 lines
594 B
Nix
Raw Permalink Normal View History

{ gtkNativeInputs }:
attrs:
let
gsettingsDir = "${attrs.crateName}-${attrs.version}";
in {
nativeBuildInputs = gtkNativeInputs;
2024-02-27 00:06:41 +00:00
postInstall = ''
2024-03-22 03:48:48 +00:00
install -Dt $out/share/applications resources/otg.desktop
install -Dt $out/gsettings-schemas/${gsettingsDir}/glib-2.0/schemas resources/com.luminescent-dreams.otg.gschema.xml
2024-02-27 00:06:41 +00:00
glib-compile-schemas $out/gsettings-schemas/${gsettingsDir}/glib-2.0/schemas
'';
# preFixup = ''
# gappsWrapperArgs+=(
# --prefix XDG_DATA_DIRS : $out/gsettings-schemas/${gsettingsDir}
# )
# '';
2024-03-22 03:48:48 +00:00
}