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:
parent
b0b82aa689
commit
569fa2cbe7
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue