diff options
author | Vincent Ambo <tazjin@google.com> | 2019-11-22T16·14+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-11-22T16·14+0000 |
commit | 8710df08c8212d33a8b8d8bf22524fe290642842 (patch) | |
tree | 9ec82359ce477c34a0eb349c9c352d8a59c4ca1b /overrides | |
parent | 5a89a0265b60ab4e354d0ce0f7cd0bad2753eebc (diff) |
fix(buildGo): Ensure names of proto-generated files are correct
Diffstat (limited to 'overrides')
-rw-r--r-- | overrides/buildGo.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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); |