diff --git a/flake.nix b/flake.nix index 7a6cb1ad..3e09667b 100644 --- a/flake.nix +++ b/flake.nix @@ -42,6 +42,7 @@ rustToolchain pkg-config mingwCompiler + makeWrapper ]; libraryPath = lib.makeLibraryPath libs; @@ -72,10 +73,17 @@ export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTFLAGS="${mingwRustflags}"; ''; + postInstall = '' + wrapProgram $out/bin/${packageName} \ + --prefix LD_LIBRARY_PATH : "${libraryPath}" \ + --prefix XDG_DATA_DIRS : "${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}" + ''; + meta = with lib; { description = "Deep Rock Galactic mod loader and integration"; license = licenses.mit; homepage = "https://github.com/trumank/mint"; + mainProgram = packageName; }; };