-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
26 lines (23 loc) · 892 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
{
description = "Build the pergola backend with nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
rec {
legacyPackages.x86_64-linux = {
inherit pkgs;
trivial = import ./api/nix/trivial/shell.nix { inherit pkgs; };
update-deps = import ./api/nix/tools/node2nix/shell.nix { inherit pkgs; };
shell = (import ./api/nix/deps/default.nix { inherit pkgs; }).shell;
nodeDependencies = (import ./api/nix/deps/default.nix { inherit pkgs; }).shell.nodeDependencies;
pergola-api = import ./api/nix/pergola-api.nix { inherit pkgs; };
pergola-api-docker = import ./api/nix/pergola-api-docker.nix { inherit pkgs; };
};
defaultPackage.x86_64-linux = legacyPackages.x86_64-linux.pergola-api;
};
}