Skip to content

Commit

Permalink
Fix zenity!
Browse files Browse the repository at this point in the history
  • Loading branch information
billy4479 committed Apr 2, 2024
1 parent 1cf442c commit 5a4e135
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ in
buildGoModule rec {
inherit pname version;
src = lib.cleanSource ./.;
nativeBuildInputs = [pkgs.makeWrapper];

ldflags = ["-X github.com/billy4479/server-tool/lib.Version=${version}"];
ldflags = ["-s" "-w" "-X 'github.com/billy4479/server-tool/lib.Version=${version}'"];

vendorHash = "sha256-YoguesTG55+Cl5ieCF3FFQK3B6EMpjGNmEV8QHu1VKE=";

Expand All @@ -22,11 +23,10 @@ in
install -Dm755 ${pname} $out/bin/${pname}
'';

postInstall = ''
postFixup = ''
wrapProgram $out/bin/${pname} \
--prefix PATH : ${lib.makeBinPath [pkgs.gnome.zenity]}
'';

meta = with lib; {
description = "A tool to manage Minecraft servers";
homepage = "https://github.com/billy4479/server-tool";
Expand Down
1 change: 1 addition & 0 deletions result

0 comments on commit 5a4e135

Please sign in to comment.