From 74c9557d554dafafdc754d8f46b566e969ac69e7 Mon Sep 17 00:00:00 2001 From: JManch <61563764+JManch@users.noreply.github.com> Date: Sun, 5 May 2024 17:32:38 +0100 Subject: [PATCH] Fix nix package (#174) * Fix nix package * Use packageName attribute and set mainProgram --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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; }; };