2023-03-19 09:59:32 -07:00
|
|
|
{
|
|
|
|
description = "Suan Ni Home Guard";
|
|
|
|
|
|
|
|
inputs = {
|
2024-03-23 21:32:45 -07:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-23.11";
|
2023-03-19 09:59:32 -07:00
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
helpers = {
|
2024-03-23 21:32:45 -07:00
|
|
|
url = "git+https://fudo.dev/public/nix-helpers.git";
|
2023-03-19 09:59:32 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, utils, helpers, ... }:
|
|
|
|
utils.lib.eachDefaultSystem (system:
|
|
|
|
let pkgs = import nixpkgs { inherit system; };
|
|
|
|
in {
|
|
|
|
packages = rec {
|
|
|
|
default = suanni-server;
|
|
|
|
suanni-server = helpers.packages."${system}".mkClojureBin {
|
|
|
|
name = "org.fudo/suanni.server";
|
|
|
|
primaryNamespace = "suanni.server.cli";
|
|
|
|
src = ./.;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
devShells = rec {
|
|
|
|
default = updateDeps;
|
|
|
|
updateDeps = pkgs.mkShell {
|
|
|
|
buildInputs = with helpers.packages."${system}";
|
|
|
|
[ updateClojureDeps ];
|
|
|
|
};
|
2023-03-21 08:40:54 -07:00
|
|
|
suanniServer = pkgs.mkShell {
|
|
|
|
buildInputs = with self.packages."${system}"; [ suanni-server ];
|
|
|
|
};
|
2023-03-19 09:59:32 -07:00
|
|
|
};
|
|
|
|
}) // {
|
|
|
|
nixosModules = rec {
|
|
|
|
default = suanni-server;
|
|
|
|
suanni-server = import ./module.nix self.packages;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|