about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nix/buildTypedGo/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nix/buildTypedGo/default.nix b/nix/buildTypedGo/default.nix
index 88eb8688ce..f135b1ebb4 100644
--- a/nix/buildTypedGo/default.nix
+++ b/nix/buildTypedGo/default.nix
@@ -8,13 +8,14 @@
 
 let
   inherit (builtins)
+    baseNameOf
     stringLength
     substring;
 
   inherit (depot.nix.buildGo) gpackage program;
 
   go2goext = file: substring 0 ((stringLength file) - 1) file;
-  go2go = file: pkgs.runCommandNoCC "${go2goext (toString file)}" {} ''
+  go2go = file: pkgs.runCommandNoCC "${go2goext (baseNameOf file)}" {} ''
     cp ${file} .
     ${pkgs.go}/bin/go tool go2go translate *.go2
     mv *.go $out