Skip to content

Commit

Permalink
Fix nix package (#174)
Browse files Browse the repository at this point in the history
* Fix nix package

* Use packageName attribute and set mainProgram
  • Loading branch information
JManch authored May 5, 2024
1 parent d76bff8 commit 74c9557
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
rustToolchain
pkg-config
mingwCompiler
makeWrapper
];

libraryPath = lib.makeLibraryPath libs;
Expand Down Expand Up @@ -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;
};
};

Expand Down

0 comments on commit 74c9557

Please sign in to comment.