|
83 | 83 | let pkgs = nixpkgsFor.${system}; in {
|
84 | 84 | protoc-gen-purescript = pkgs.protoc-gen-purescript;
|
85 | 85 | conformance-purescript = pkgs.conformance-purescript;
|
| 86 | + protobuf_v3_9_2 = pkgs.protobuf_v3_9_2; |
| 87 | + protobuf_v3_14_0 = pkgs.protobuf_v3_14_0; |
| 88 | + protobuf_v3_15_8 = pkgs.protobuf_v3_15_8; |
| 89 | + protobuf_v3_20_1 = pkgs.protobuf_v3_20_1; |
| 90 | + protobuf_v3_21_0 = pkgs.protobuf_v3_21_0; |
| 91 | + protobuf_v21_10 = pkgs.protobuf_v21_10; |
| 92 | + protobuf_v23_2 = pkgs.protobuf_v23_2; |
| 93 | + protobuf_v24_4 = pkgs.protobuf_v24_4; |
86 | 94 | protobuf_v28_2 = pkgs.protobuf_v28_2;
|
87 |
| - protobuf = pkgs.protobuf_v28_2; |
| 95 | + protobuf_local = pkgs.protobuf_local; |
88 | 96 | });
|
89 | 97 |
|
90 | 98 | devShells = forAllSystems (system:
|
|
99 | 107 | purs-backend-es
|
100 | 108 | purescript-language-server
|
101 | 109 | nodejs
|
102 |
| - protobuf |
| 110 | + # If MacOS then we use the protobuf from nixpkgs. |
| 111 | + # Else we use our own protobuf. |
| 112 | + (if stdenv.isDarwin then protobuf else protobuf_local) |
103 | 113 | esbuild
|
104 | 114 | protoc-gen-purescript
|
105 | 115 | ];
|
|
134 | 144 | let pkgs = nixpkgsFor.${system}; in {
|
135 | 145 | protoc = {
|
136 | 146 | type = "app";
|
137 |
| - program = "${pkgs.protobuf}/bin/protoc"; |
| 147 | + program = "${pkgs.protobuf_local}/bin/protoc"; |
138 | 148 | };
|
139 | 149 | protoc-gen-purescript = {
|
140 | 150 | type = "app";
|
141 | 151 | program = "${pkgs.protoc-gen-purescript}/bin/protoc-gen-purescript";
|
142 | 152 | };
|
143 | 153 | conformance_test_runner = {
|
144 | 154 | type = "app";
|
145 |
| - program = "${pkgs.protobuf}/bin/conformance_test_runner"; |
| 155 | + program = "${pkgs.protobuf_local}/bin/conformance_test_runner"; |
146 | 156 | };
|
147 | 157 | conformance-purescript = {
|
148 | 158 | type = "app";
|
|
153 | 163 | conformance-run = pkgs.writeScriptBin "conformance" ''
|
154 | 164 | set -e
|
155 | 165 | set -x
|
156 |
| - ${pkgs.protobuf}/bin/conformance_test_runner --enforce_recommended ${pkgs.conformance-purescript}/bin/conformance-purescript |
| 166 | + ${pkgs.protobuf_local}/bin/conformance_test_runner --enforce_recommended ${pkgs.conformance-purescript}/bin/conformance-purescript |
157 | 167 | '';
|
158 | 168 | in
|
159 | 169 | {
|
|
0 commit comments