1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-26 16:37:46 +00:00

fix: use lib.getExe

This commit is contained in:
RGBCube 2025-04-12 01:34:38 +03:00
parent b0b82aa689
commit 569fa2cbe7
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -7,7 +7,9 @@
}; };
outputs = { systems, nixpkgs, ... }: let outputs = { systems, nixpkgs, ... }: let
eachSystem = nixpkgs.lib.genAttrs (import systems); inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
in { in {
packages = eachSystem (system: let packages = eachSystem (system: let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
@ -30,6 +32,8 @@
# TODO: pypkgs.jishaku # TODO: pypkgs.jishaku
pypkgs.mcstatus pypkgs.mcstatus
]; ];
meta.mainProgram = "minearchy-bot";
}; };
minearchy-bot-container = pkgs.dockerTools.buildImage { minearchy-bot-container = pkgs.dockerTools.buildImage {
@ -48,7 +52,7 @@
config.Env = [ "PATH=/bin" ]; config.Env = [ "PATH=/bin" ];
config.WorkingDir = "/minearcy-bot"; config.WorkingDir = "/minearcy-bot";
config.Cmd = "${minearchy-bot}/bin/minearchy-bot"; config.Cmd = lib.getExe minearchy-bot;
}; };
}); });
}; };