-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
38 lines (35 loc) · 1.25 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
{
description = "Fission tools";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
fission.url = "github:fission-codes/fission/walkah/haskell-nix";
homestar.url = "github:ipvm-wg/homestar/homestar-runtime-v0.3.0";
fission-server.url = "github:fission-codes/fission-server/b5f7228f2efe09989665dac519acf8cc04887647";
};
outputs = { self, nixpkgs, flake-utils, fission, homestar, fission-server, ... }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
packages = {
homestar = homestar.packages.${system}.default;
fission-server = fission-server.packages.${system}.default;
fission-cli = fission.packages.${system}.fission-cli;
web-api = fission.packages.${system}.fission-server;
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ jq ];
};
}
) // {
overlay = final: prev: {
inherit (self.packages.${prev.system}) homestar fission-server fission-cli web-api;
};
};
}