forked from armijnhemel/proximity_matcher_webservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
28 lines (24 loc) · 822 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
description = "Webservice for proximity matching using TLSH and Vantage Point Trees";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }: ({
overlays.default = import ./overlay.nix;
nixosModules.default = ./module.nix;
}) // (
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
in
{
packages = forAllSystems (system: rec {
inherit (self.overlays.default null nixpkgs.legacyPackages.${system}) proximity_matcher_webservice;
default = proximity_matcher_webservice;
});
checks = forAllSystems (system: rec {
integration-test = import ./test.nix { inherit nixpkgs self system; };
});
}
);
}