forked from pontaoski/Challah
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
46 lines (43 loc) · 1.18 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
41
42
43
44
45
46
{
description = "Flake for Challah";
inputs = {
challahSrc = {
url = "github:harmony-development/Challah/oven";
flake = false;
};
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flakeUtils.url = "github:numtide/flake-utils";
flakeCompat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = inputs:
with inputs.flakeUtils.lib; eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import inputs.nixpkgs {
inherit system;
};
packages = rec {
protoc-gen-hrpc = pkgs.callPackage ./build-hrpc-gen.nix { };
harmony-protocol = pkgs.callPackage ./build-protocol.nix { };
challah = pkgs.libsForQt5.callPackage ./build.nix {
inherit harmony-protocol protoc-gen-hrpc;
inherit (inputs.challahSrc) rev;
};
};
apps = {
challah = mkApp {
name = "Challah";
drv = packages.challah;
};
};
in
{
inherit packages apps;
devShell = packages.challah;
defaultPackage = packages.challah;
defaultApp = apps.challah;
}
);
}