1# Derivation which provides `protoc-gen-purescript` on the PATH
3{ pkgs ? import ./nix/pkgs.nix {} }:
6 node2NixFiles = srcPath:
7 pkgs.stdenv.mkDerivation {
8 name = "node2NixFiles";
9 nativeBuildInputs = with pkgs; [ nodejs node2nix.package ];
12 cp $src/package.json $src/package-lock.json .
15 node2nix -l package-lock.json
19 cp node-env.nix node-packages.nix default.nix $out/
20 cp package.json package-lock.json $out/
24 protobufNixNode = import (node2NixFiles ./.) { inherit pkgs; };
25 spagoPkgs = import ./nix/spago-packages.nix { inherit pkgs; };
28pkgs.stdenv.mkDerivation {
29 name = "purescript-protobuf-generator";
31 spagoPkgs.installSpagoStyle
32 spagoPkgs.buildSpagoStyle
34 nativeBuildInputs = with pkgs; [
41 cp $src/packages.dhall .
43 cp -r ${protobufNixNode.nodeDependencies}/lib/node_modules .
47 ls -la .spago/unsafe-coerce
48 build-spago-style "./src/**/*.purs"
53 cp -r node_modules $out/
54 echo "node -e \"require('$out/output/ProtocPlugin.Main/index.js').main()\"" >> $out/bin/protoc-gen-purescript
55 chmod +x $out/bin/protoc-gen-purescript
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list