diff options
Diffstat (limited to 'overrides/buildGo.nix')
-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); |