fix(buildGo): Ensure names of proto-generated files are correct

This commit is contained in:
Vincent Ambo 2019-11-22 16:14:35 +00:00
parent 5a89a0265b
commit 8710df08c8

View file

@ -30,7 +30,7 @@ let
includeDepLib = dep: "-L ${dep}";
includeLibs = deps: spaceOut (map includeDepLib deps);
srcBasename = src: head (filter isString (match "([a-z0-9]{32}\-)?(.*\.go)" (baseNameOf src)));
srcBasename = src: elemAt (match "([a-z0-9]{32}\-)?(.*\.go)" (baseNameOf src)) 1;
srcCopy = path: src: "cp ${src} $out/${path}/${srcBasename src}";
srcList = path: srcs: lib.concatStringsSep "\n" (map (srcCopy path) srcs);