about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-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 88eb8688ce2a..f135b1ebb454 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