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 4d9df9f commit a3d798d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
pkgs,
lib,
buildGoModule,
go,
gnome,
}: let
pname = "server-tool";
version = "2.1.4";
in
buildGoModule rec {
inherit pname version;
src = lib.cleanSource ./.;
nativeBuildInputs = [go];
buildInputs = [gnome.zenity];

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

vendorHash = "sha256-YoguesTG55+Cl5ieCF3FFQK3B6EMpjGNmEV8QHu1VKE=";

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

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

meta = with lib; {
description = "A tool to manage Minecraft servers";
homepage = "https://github.com/billy4479/server-tool";
Expand Down

0 comments on commit a3d798d

Please sign in to comment.