git.iko.soy/rowtype-yoga/purescript-protobuf
on v1.0.0 help sign in
37 lines 1.0 kB history raw
1{ pkgs ? import ./nix/pkgs.nix { } }:
2let
3 conformance = import ./conformance/protobuf.nix { inherit pkgs; };
4in
5pkgs.mkShell {
6 nativeBuildInputs = [
7 pkgs.easy-ps.purs-0_13_8
8 pkgs.easy-ps.spago
9 pkgs.nodejs-13_x
10 pkgs.easy-ps.pulp
11 pkgs.protobuf3_9
12 pkgs.nodePackages.bower
13 pkgs.easy-ps.psc-package
14 pkgs.dhall
15 pkgs.dhall-json
16 ];
17 shellHook = ''
18 export PATH="./bin:$PATH" # PATH to protoc-gen-purescript
19 echo "Purescript Protobuf development environment."
20 echo "To build purescript-protobuf, run:"
21 echo ""
22 echo " npm install"
23 echo " spago build"
24 echo ""
25 echo "To test purescript-protobuf, run:"
26 echo ""
27 echo " protoc --purescript_out=./test/generated test/*.proto"
28 echo " spago -x test.dhall build"
29 echo " spago -x test.dhall test"
30 echo ""
31 echo "To generate Purescript .purs files from .proto files, run:"
32 echo ""
33 echo " protoc --purescript_out=path_to_output *.proto"
34 echo ""
35 '';
36 LC_ALL = "C.UTF-8"; # https://github.com/purescript/spago/issues/507