clan-core/pkgs/clan-cli/flake-module.nix
DavHau 7262208a4c
All checks were successful
build / test (pull_request) Successful in 26s
clanLib.jsonschema: move tests from pkgs/clan-cli
2023-08-09 16:05:33 +02:00

34 lines
889 B
Nix

{ self, ... }: {
perSystem = { self', pkgs, ... }: {
devShells.clan-cli = pkgs.callPackage ./shell.nix {
inherit self;
inherit (self'.packages) clan-cli;
};
packages = {
clan-cli = pkgs.python3.pkgs.callPackage ./default.nix {
inherit self;
zerotierone = self'.packages.zerotierone;
};
default = self'.packages.clan-cli;
## Optional dependencies for clan cli, we re-expose them here to make sure they all build.
inherit (pkgs)
bash
bubblewrap
openssh
sshpass
zbar
tor
age
sops;
# Override license so that we can build zerotierone without
# having to re-import nixpkgs.
zerotierone = pkgs.zerotierone.overrideAttrs (_old: { meta = { }; });
## End optional dependencies
};
checks = self'.packages.clan-cli.tests;
};
}