-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
36 lines (34 loc) · 999 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
29
30
31
32
33
34
35
36
{
description = "Flake for hrpc";
inputs = {
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-generic.nix {
src = inputs.self;
name = "protoc-gen-hrpc";
vendorSha256 = "sha256-VoOBEpdkGIonW0AHO7fYsgmyAtDcSU8V/hTR0KHB7i0=";
};
protoc-gen-go-hrpc = pkgs.callPackage ./build-generic.nix {
src = inputs.self;
name = "protoc-gen-go-hrpc";
vendorSha256 = "sha256-VoOBEpdkGIonW0AHO7fYsgmyAtDcSU8V/hTR0KHB7i0=";
};
};
in
{
inherit packages;
}
);
}