1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-25 16:07: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
eachSystem = nixpkgs.lib.genAttrs (import systems);
inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
in {
packages = eachSystem (system: let
pkgs = import nixpkgs { inherit system; };
@ -30,6 +32,8 @@
# TODO: pypkgs.jishaku
pypkgs.mcstatus
];
meta.mainProgram = "minearchy-bot";
};
minearchy-bot-container = pkgs.dockerTools.buildImage {
@ -48,7 +52,7 @@
config.Env = [ "PATH=/bin" ];
config.WorkingDir = "/minearcy-bot";
config.Cmd = "${minearchy-bot}/bin/minearchy-bot";
config.Cmd = lib.getExe minearchy-bot;
};
});
};