diff options
| author | seth <[email protected]> | 2023-03-14 20:38:51 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-03-14 20:40:13 -0400 |
| commit | 4edadb0888a34845f9d7b5fbfe0047638e52d2cf (patch) | |
| tree | c617ec91199d9d4ccfc2d4acd31e81ce9bde68d9 /flake.nix | |
| parent | 788a8fb3f3dc4aba8081419fd80402261aaceac8 (diff) | |
add docker container
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -6,6 +6,9 @@ pre-commit-hooks = { url = "github:cachix/pre-commit-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; + inputs.nixpkgs-stable.follows = "nixpkgs"; + inputs.flake-compat.follows = "flake-compat"; + inputs.flake-utils.follows = "flake-utils"; }; flake-compat = { url = "github:edolstra/flake-compat"; @@ -18,8 +21,8 @@ self, nixpkgs, pre-commit-hooks, - flake-compat, flake-utils, + ... }: let version = "0.0.1"; supportedSystems = with flake-utils.lib.system; [x86_64-linux x86_64-darwin aarch64-linux aarch64-darwin]; @@ -37,6 +40,12 @@ format = "flit"; propagatedBuildInputs = with pkgs.python39Packages; [hatchling discordpy requests]; }; + container = with pkgs.dockerTools; + buildImage { + name = "teawiebot"; + copyToRoot = [caCertificates]; + config.Cmd = ["${self.packages.${system}.teawiebot}/bin/teawiebot"]; + }; } // {default = self.packages.${system}.teawiebot;}; |
