Build a flake extension to install fitnesstrax directly from git #187

Merged
savanni merged 3 commits from fitnesstrax/installer into main 2024-02-12 15:17:20 +00:00
2 changed files with 8 additions and 1 deletions
Showing only changes of commit 4dd6afeae7 - Show all commits

View File

@ -3,6 +3,12 @@ attrs: {
nativeBuildInputs = gtkNativeInputs;
postInstall = ''
install -Dt $out/share/applications resources/fitnesstrax.desktop
install -Dt $out/share/glib-2.0/schemas resources/com.luminescent-dreams.fitnesstrax.gschema.xml
install -Dt $out/gsettings-schemas/${attrs.crateName}-${attrs.version}/glib-2.0/schemas resources/com.luminescent-dreams.fitnesstrax.gschema.xml
glib-compile-schemas $out/gsettings-schemas/${attrs.crateName}-${attrs.version}/glib-2.0/schemas
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : $out/gsettings-schemas/${attrs.crateName}-${attrs.version}
)
'';
}

View File

@ -58,6 +58,7 @@
pkgs.pkg-config
pkgs.gtk4
pkgs.libadwaita
pkgs.wrapGAppsHook4
];
cargoOverrides = pkgs: pkgs.buildRustCrate.override {