-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
40 lines (34 loc) · 1.72 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
{
description = "Reproducible toolchain for building and testing Supervisor Lookup";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05";
mvn2nix-pkgs.url = "github:johannesloetzsch/mvn2nix/master";
};
outputs = { self, nixpkgs, mvn2nix-pkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { system="x86_64-linux";
overlays = [ (import ./frontend/nix/deps/cypress/cypress-overlay.nix) ];
};
mvn2nix = mvn2nix-pkgs.legacyPackages.x86_64-linux.mvn2nix;
buildMavenRepositoryFromLockFile = mvn2nix-pkgs.legacyPackages.x86_64-linux.buildMavenRepositoryFromLockFile;
in
rec {
packages.x86_64-linux = {
inherit nixpkgs pkgs;
## Tools
backendUpdatedDeps = import ./backend/nix/tools/updated-deps.nix { inherit pkgs mvn2nix; };
frontendCodegen = import ./frontend/nix/tools/codegen.nix { inherit pkgs; };
frontendUpdatedDeps = import ./frontend/nix/tools/updated-deps.nix { inherit pkgs; };
cypress = import ./frontend/nix/deps/cypress/override.nix { inherit pkgs; };
release = import ./.circleci/nix/tools/release.nix { inherit pkgs; };
## Builds
backend = import ./backend/nix/swlkup-backend.nix { inherit pkgs buildMavenRepositoryFromLockFile; };
frontend = import ./frontend/nix/swlkup-frontend.nix { inherit pkgs; };
fullstack = import ./backend/nix/swlkup-backend.nix { inherit pkgs buildMavenRepositoryFromLockFile;
patchPublic = packages.x86_64-linux.frontend.staticHTML; };
};
defaultPackage.x86_64-linux = packages.x86_64-linux.fullstack;
devShell.x86_64-linux = import ./shell.nix { inherit pkgs; };
};
}