about summary refs log tree commit diff
path: root/overrides
diff options
context:
space:
mode:
Diffstat (limited to 'overrides')
-rw-r--r--overrides/buildGo.nix2
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);