2023-07-26 07:27:48 +00:00
|
|
|
{ self, ... }: {
|
2023-08-03 09:31:56 +00:00
|
|
|
perSystem = { self', pkgs, ... }: {
|
2023-08-08 12:11:04 +00:00
|
|
|
devShells.clan-cli = pkgs.callPackage ./shell.nix {
|
2023-07-26 07:27:48 +00:00
|
|
|
inherit self;
|
2023-08-08 12:11:04 +00:00
|
|
|
inherit (self'.packages) clan-cli;
|
2023-07-20 23:08:35 +00:00
|
|
|
};
|
2023-07-26 07:27:48 +00:00
|
|
|
packages = {
|
2023-08-08 12:11:04 +00:00
|
|
|
clan-cli = pkgs.python3.pkgs.callPackage ./default.nix {
|
2023-07-26 07:27:48 +00:00
|
|
|
inherit self;
|
|
|
|
zerotierone = self'.packages.zerotierone;
|
|
|
|
};
|
2023-08-25 09:39:46 +00:00
|
|
|
clan-openapi = self'.packages.clan-cli.clan-openapi;
|
2023-08-08 12:11:04 +00:00
|
|
|
default = self'.packages.clan-cli;
|
2023-07-26 07:27:48 +00:00
|
|
|
|
|
|
|
## Optional dependencies for clan cli, we re-expose them here to make sure they all build.
|
|
|
|
inherit (pkgs)
|
|
|
|
bash
|
|
|
|
bubblewrap
|
|
|
|
openssh
|
|
|
|
sshpass
|
|
|
|
zbar
|
2023-08-03 11:11:42 +00:00
|
|
|
tor
|
|
|
|
age
|
2023-08-10 10:30:52 +00:00
|
|
|
rsync
|
2023-08-03 11:11:42 +00:00
|
|
|
sops;
|
2023-08-02 18:04:16 +00:00
|
|
|
# Override license so that we can build zerotierone without
|
2023-07-26 07:27:48 +00:00
|
|
|
# having to re-import nixpkgs.
|
|
|
|
zerotierone = pkgs.zerotierone.overrideAttrs (_old: { meta = { }; });
|
2023-07-26 07:36:50 +00:00
|
|
|
## End optional dependencies
|
2023-07-26 07:27:48 +00:00
|
|
|
};
|
2023-08-02 18:04:16 +00:00
|
|
|
|
2023-08-09 14:05:16 +00:00
|
|
|
checks = self'.packages.clan-cli.tests;
|
2023-07-26 07:27:48 +00:00
|
|
|
};
|
2023-08-03 09:31:56 +00:00
|
|
|
|
2023-07-20 16:07:27 +00:00
|
|
|
}
|