generated from Luis/nextjs-python-web-template
25 lines
734 B
Nix
25 lines
734 B
Nix
{ inputs, ... }:
|
|
{
|
|
perSystem = { self', pkgs, ... }: {
|
|
devShells.clan-cli = pkgs.callPackage ./shell.nix {
|
|
inherit (self'.packages) clan-cli ui-assets nix-unit;
|
|
};
|
|
packages = {
|
|
clan-cli = pkgs.python3.pkgs.callPackage ./default.nix {
|
|
inherit (self'.packages) ui-assets zerotierone;
|
|
inherit (inputs) nixpkgs;
|
|
};
|
|
clan-openapi = self'.packages.clan-cli.clan-openapi;
|
|
default = self'.packages.clan-cli;
|
|
|
|
# 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;
|
|
};
|
|
|
|
}
|