2022-05-27 11:40:56 -07:00
|
|
|
{
|
|
|
|
description = "BeBot Mattermost chatbot Clojure library.";
|
|
|
|
|
|
|
|
inputs = {
|
2023-03-19 11:27:32 -07:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-22.11";
|
2022-05-27 11:40:56 -07:00
|
|
|
utils.url = "github:numtide/flake-utils";
|
2023-03-19 11:27:32 -07:00
|
|
|
helpers = {
|
2024-03-23 21:24:29 -07:00
|
|
|
url = "git+https://fudo.dev/public/nix-helpers.git";
|
2022-05-27 11:40:56 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-03-19 11:27:32 -07:00
|
|
|
outputs = { self, nixpkgs, utils, helpers, ... }:
|
2022-05-27 11:40:56 -07:00
|
|
|
utils.lib.eachDefaultSystem (system:
|
2023-03-19 11:27:32 -07:00
|
|
|
let pkgs = nixpkgs.legacyPackages."${system}";
|
2022-05-27 11:40:56 -07:00
|
|
|
in {
|
2023-03-19 11:27:32 -07:00
|
|
|
packages = rec {
|
|
|
|
default = bebot;
|
|
|
|
bebot = helpers.packages."${system}".mkClojureLib {
|
2022-06-02 19:58:01 -07:00
|
|
|
name = "org.fudo/bebot";
|
2023-03-19 11:27:32 -07:00
|
|
|
primaryNamespace = "bebot.core";
|
|
|
|
src = ./.;
|
2022-06-02 19:58:01 -07:00
|
|
|
};
|
2022-05-27 11:40:56 -07:00
|
|
|
};
|
2022-06-02 19:58:01 -07:00
|
|
|
|
2023-03-19 11:27:32 -07:00
|
|
|
devShells = rec {
|
|
|
|
default = updateDeps;
|
|
|
|
updateDeps = pkgs.mkShell {
|
|
|
|
buildInputs = with helpers.packages."${system}";
|
2024-03-23 11:21:50 -07:00
|
|
|
[ (updateClojureDeps { }) ];
|
2023-03-19 11:27:32 -07:00
|
|
|
};
|
|
|
|
};
|
2022-05-27 11:40:56 -07:00
|
|
|
});
|
|
|
|
}
|