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