bebot/flake.nix

35 lines
931 B
Nix

{
description = "BeBot Mattermost chatbot Clojure library.";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
utils.url = "github:numtide/flake-utils";
helpers = {
url = "git+https://fudo.dev/public/nix-helpers.git";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, utils, helpers, ... }:
utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages."${system}";
in {
packages = rec {
default = bebot;
bebot = helpers.packages."${system}".mkClojureLib {
name = "org.fudo/bebot";
primaryNamespace = "bebot.core";
src = ./.;
};
};
devShells = rec {
default = updateDeps;
updateDeps = pkgs.mkShell {
buildInputs = with helpers.packages."${system}";
[ (updateClojureDeps { }) ];
};
};
});
}