From 8710df08c8212d33a8b8d8bf22524fe290642842 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 22 Nov 2019 16:14:35 +0000 Subject: fix(buildGo): Ensure names of proto-generated files are correct --- overrides/buildGo.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overrides/buildGo.nix b/overrides/buildGo.nix index 8e915dda14a8..7ba9000e183b 100644 --- a/overrides/buildGo.nix +++ b/overrides/buildGo.nix @@ -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); -- cgit 1.4.1